Testing the following workflow with check-jsonschema:
- Using Stoplight studio, export https://github.com/opengeospatial/ogcapi-records/blob/master/core/openapi/schemas/recordGeoJSON.yaml to a JSON Schema (bundled/dereferenced) (result is
recordGeoJSON-bundled.json
in this gist) - Run the following on the below JSON instance:
check-jsonschema --schemafile recordGeoJSON-bundled.json test.json
ok -- validation done
-
Update the geometry definition in
test.json
to"geometry": null
: -
Run the following on the below JSON instance:
check-jsonschema --schemafile recordGeoJSON-bundled.json test.json
ok -- validation done
-
Update the time definition in
test.json
to"time": null
: -
Run the following on the below JSON instance:
check-jsonschema --schemafile recordGeoJSON-bundled.json test.json
Schema validation errors were encountered.
test.json::$.time: None is not of type 'object'