Closed
Description
Using the library we have find this scenario. It allows negative numbers with this definition. It works well for the other constraints but no for check the minimum constraint.
{
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"properties": {
"attributes": {
"type": "object",
"properties": {
"spaces": {
"description": "Number of spaces",
"type": ["string", "integer"],
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"Ample"
]
}
]
}
}
}
}
}
Metadata
Metadata
Assignees
Labels
No labels