Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
123 lines (123 sloc) 2.66 KB
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "#",
"title": "An ARTA Location",
"type": "object",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "The location id"
},
"address_line_1": {
"type": "string",
"description": "First line of address"
},
"address_line_2": {
"type": "string",
"description": "Second line of address"
},
"address_line_3": {
"type": "string",
"description": "Third line of address"
},
"city": {
"type": "string",
"description": "City"
},
"region": {
"type": "string",
"description": "Political region name, for US states and Canada provinces, use 2 letter abbreviations"
},
"postal_code": {
"type": "string",
"description": "The postal code"
},
"country": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"description": "The ISO 3166-1 alpha-2 country code of the current or last known location if available"
},
"longitude": {
"$ref": "#/definitions/longitude"
},
"latitude": {
"$ref": "#/definitions/latitude"
},
"title": {
"type": "string",
"description": "The title or name of the location"
},
"location_requirements": {
"type": "array",
"items": {
"type": "string",
"description": "Id of location requirement type"
}
},
"access_restrictions": {
"type": "array",
"items": {
"type": "string",
"description": "Id of location restriction type"
}
},
"type": {
"type": "string",
"description": "Id of a location type"
},
"contacts": {
"type": "array",
"description": "An ordered list of contacts at the location, the primary contact should be listed first",
"items": {
"$ref": "contact.schema.json"
}
},
"special_instructions": {
"type": "string",
"description": "Any special instructions regarding the location"
}
},
"anyOf": [
{
"required": [
"city",
"country"
]
},
{
"required": [
"city",
"region",
"country"
]
},
{
"required": [
"postal_code",
"country"
]
},
{
"required": [
"longitude",
"latitude"
]
}
],
"definitions": {
"latitude": {
"$id": "#/definitions/latitude",
"type": "number",
"minimum": -90,
"maximum": 90
},
"longitude": {
"$id": "#/definitions/longitude",
"type": "number",
"minimum": -180,
"maximum": 180
}
}
}
You can’t perform that action at this time.