Skip to content

Commit

Permalink
schema.json: Fix "coverage" definition to comply with readme.md
Browse files Browse the repository at this point in the history
The distinction between "area" and "region" as well as the definition of
"region" were missing. See also #7
  • Loading branch information
derf committed Jan 26, 2021
1 parent d03e966 commit c95e711
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,19 @@
},
"definitions": {
"coverage": {
"$id": "#/definitions/coverage",
"type": "object",
"minProperties": 1,
"additionalProperties": false,
"properties": {
"area": {
"$ref": "#/definitions/coverage_geojson"
},
"region": {
"$ref": "#/definitions/coverage_region"
}
}
},
"coverage_geojson": {
"type": "object",
"required": [
"type",
Expand Down Expand Up @@ -103,6 +115,15 @@
}
}
},
"coverage_region": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z](-[a-zA-Z][a-zA-Z])?$",
"description": "ISO-3166-1/2 country/region code"
},
"minItems": 1
},
"attribution_opendata": {
"type": "object",
"required": [
Expand Down

0 comments on commit c95e711

Please sign in to comment.