Created
November 19, 2021 11:33
-
-
Save expiscornovus/80fb946b2bbc7031c160ca830c2566df to your computer and use it in GitHub Desktop.
Parse Json schema for Geo JSON countries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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