Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "BASEURL/address.json",
"title": "address",
"description": "Address",
"type": "object",
"properties": {
"city": {
"type": "string",
"maxLength": 50
},
"country": {
"type": "object",
"properties": {
"countryName": {
"type": "string",
"description": "Name of the country."
},
"countryA2": {
"type": "string",
"description": "ISO-3166 alpha-2 code."
},
"countryA3": {
"type": "string",
"description": "ISO 3166-1:2013 alpha-3"
},
"countryNumber": {
"type": "string",
"description": "ISO-3166 numeric code."
}
},
"required": ["countryA3"],
"additionalProperties": false
},
"addressLine1": {
"type": "object",
"properties": {
"street": {
"type": "string" ,
"maxLength": 50
},
"streetNumber": {
"type": "string"
}
},
"required": ["street"],
"additionalProperties": false
},
"addressLine2": {
"type": "string",
"maxLength": 50
},
"addressLine3": {
"type": "string",
"maxLength": 50
},
"postalCode": {
"type": "string",
"maxLength": 16
},
"state": {
"type": "string",
"minLength": 2,
"maxLength": 2,
"description": "Alpha-2 code of state or province according to ISO 3166-2:2013 where applicable"
}
},
"required": ["country", "addressLine1", "postalCode"],
"additionalProperties": false
} „title“: „address“,
„description“: „Adresse“,
„type“: „object“,
„properties“: {
„city“: {
„type“: „string“
},
„country“: {
„type“: „object“,
„properties“: {
„countryName“: {
„type“: „string“,
„description“: „Name des Landes.“
},
„countryA2“: {
„type“: „string“,
„description“: „ISO-3166 Alpha-2 Code.“
},
„countryA3“: {
„type“: „string“,
„description“: „ISO 3166-1:2013 Alpha-3“
},
„countryNumber“: {
„type“: „string“,
„description“: „ISO-3166 numerischer Code.“
}
},
„required“: [„countryA3“],
„additionalProperties“: false
},
„addressLine1“: {
„type“: „object“,
„properties“: {
„street“: {
„type“: „string“
},
„streetNumber“: {
„type“: „string“
}
},
„required“: [„street“],
„additionalProperties“: false
},
„addressLine2“: {
„type“: „string“
},
„addressLine3“: {
„type“: „string“
},
„postalCode“: {
„type“: „string“
},
„state“: {
„type“: „string“,
„minLength“: 2,
„maxLength“: 2,
„description“: „Alpha-2 Code des Bundesstaates oder der Provinz gemäß ISO 3166-2:2013, sofern zutreffend“
}
},
„required“: [„country“, „addressLine1“, „postalCode“],
„additionalProperties“: false
}