Open
Description
I'm trying to validate a schema generated my OpenAPI and check-jsonschema
is not working with it. In particular, I need to check required
plus minimum
/maximum
fields.
This is the schemafile:
{
"components": {
"schemas": {
"my_data": {
"type": "object",
"properties": {
"longitude": {
"type": "number",
"format": "decimal-degrees +/- DDD.D",
"example": -107.6177275,
"description": "the longitude of the observatory/instrument",
"minimum": -180,
"maximum": 180
}
},
"required": ["longitude"]
}
}
}
}
This is the instance an example of instance file: {"latitude":190.0}
.
Currently check-jsonschema
is returning ok -- validation done