-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CODV2API (#1): created schema/CODV2API/v1.0/location-item-cod-ab.eng.…
…schema.json
- Loading branch information
Showing
6 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"location_name": "Atlantida", | ||
"iso_3": "hnd", | ||
"themes": [ | ||
"Administrative Boundary" | ||
], | ||
"status": "ok", | ||
"total": 1, | ||
"_comment": { | ||
"date": "2021-05-05T06:27:00Z", | ||
"source": "First item of https://beta.itos.uga.edu/CODV2API/api/v1/locations/HN01", | ||
"note": "Here uses iso_3" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"admin0Pcode": "sdn", | ||
"admin0Name_ref": " Sudan", | ||
"version": "Latest", | ||
"valid_from": "2020-08-31T00:00:00", | ||
"valid_to": "2021-08-31T00:00:00", | ||
"comments": null, | ||
"_comment": { | ||
"date": "2021-05-05T06:38:00Z", | ||
"source": "First item of https://beta.itos.uga.edu/CODV2API/api/v1/themes/cod-ab/locations/SDN" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://hapi.etica.ai/schema/CODV2API/v1.0/location-item-cod-ab.eng.schema.json", | ||
"title": "UN/CODV2API v1.0 location-item", | ||
"description": "JSON schema (English descriptions) from items of https://beta.itos.uga.edu/CODV2API/api/v1/themes/cod-ab/locations/SDN (as 2021-05-05) \nJSON Schem specification here https://json-schema.org/ \nExample of online editor: https://www.jsonschemavalidator.net/", | ||
"type": "object", | ||
"required": [ | ||
"admin0Pcode", | ||
"admin0Name_ref", | ||
"version", | ||
"valid_from", | ||
"valid_to" | ||
], | ||
"additionalProperties": false, | ||
"properties": { | ||
"admin0Pcode": { | ||
"description": "TODO: admin0Pcode description", | ||
"type": "string", | ||
"minLength": 3, | ||
"maxLength": 3, | ||
"example": "sdn" | ||
}, | ||
"admin0Name_ref": { | ||
"description": "TODO: admin0Name_ref description", | ||
"type": "string", | ||
"minLength": 3, | ||
"maxLength": 128, | ||
"example": "Sudan" | ||
}, | ||
"version": { | ||
"description": "TODO: version description", | ||
"type": "string", | ||
"example": "Latest" | ||
}, | ||
"Total": { | ||
"description": "TODO: Total description", | ||
"type": "integer" | ||
}, | ||
"valid_from": { | ||
"description": "TODO: valid_from description", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"valid_to": { | ||
"description": "TODO: valid_to description", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"comments": { | ||
"description": "TODO: comments description", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
} | ||
}, | ||
"patternProperties": { | ||
"^_": { | ||
"type": [ | ||
"string", | ||
"array", | ||
"object" | ||
], | ||
"description": "Properties starting with Properties are tolerated, since we're enforcing additionalProperties=false" | ||
} | ||
} | ||
} |