Skip to content

Commit

Permalink
tighten conformsTo in schema (#206) (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored Jun 10, 2024
1 parent e65d192 commit 293eec7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions schemas/wcmp2-bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
},
"conformsTo": {
"type": "array",
"items": {
"type": "string"
"contains": {
"const": "http://wis.wmo.int/spec/wcmp/2/conf/core"
}
},
"type": {
Expand Down
4 changes: 3 additions & 1 deletion schemas/wcmpRecordGeoJSON.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ properties:
id:
$ref: 'https://raw.githubusercontent.com/opengeospatial/ogcapi-records/master/core/openapi/schemas/recordGeoJSON.yaml#/properties/id'
conformsTo:
$ref: 'https://raw.githubusercontent.com/opengeospatial/ogcapi-records/master/core/openapi/schemas/recordGeoJSON.yaml#/properties/conformsTo'
type: array
contains:
const: http://wis.wmo.int/spec/wcmp/2/conf/core
type:
$ref: 'https://raw.githubusercontent.com/opengeospatial/ogcapi-records/master/core/openapi/schemas/recordGeoJSON.yaml#/properties/type'
time:
Expand Down

0 comments on commit 293eec7

Please sign in to comment.