Skip to content

Instantly share code, notes, and snippets.

@expiscornovus
Created November 19, 2021 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save expiscornovus/80fb946b2bbc7031c160ca830c2566df to your computer and use it in GitHub Desktop.
Save expiscornovus/80fb946b2bbc7031c160ca830c2566df to your computer and use it in GitHub Desktop.
Parse Json schema for Geo JSON countries
{
"type": "object",
"properties": {
"type": {
"type": "string"
},
"features": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"ADMIN": {
"type": "string"
},
"ISO_A3": {
"type": "string"
},
"ISO_A2": {
"type": "string"
}
}
},
"geometry": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"coordinates": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
}
}
}
},
"required": [
"type",
"properties",
"geometry"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment