counties schema checking

JSON-Schemas
Matthew Chambers 2021-09-16 21:10:20 -05:00
rodzic fb7f925676
commit e76a089d1a
2 zmienionych plików z 142046 dodań i 7 usunięć

Plik diff jest za duży Load Diff

Wyświetl plik

@ -0,0 +1,48 @@
{
"$id": "counties.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "List of counties and programmatic definitions of each",
"patternProperties":{
"[0-9]{5,5}": {
"title": "County FIPS ID",
"type": "object",
"required": [
"type",
"geometry",
"properties"
],
"properties": {
"type": {
"type": "string",
"description": "The type of GeoJSON object described",
"items": [
"feature"
]
},
"geometry": {
"type": "object",
"description": "geometric description of the FIPS County",
"properties": {
"type": {
"type": "string",
"description": "type of GeoJSON geometry",
"items": [
"Polygon",
"Multipolygon"
]
},
"coordinates": {
"type": "array",
"description": "array of [lat, long] pairs describing the object"
}
}
},
"properties": {
}
}
}
}
}