Can't validate array with multiple items.
Opened this issue · 0 comments
lampnick commented
My json schema is
{
"type": "array",
"items": [
{
"type": "object",
"required": [
"field1"
],
"properties": {
"field1": {
"type": "string"
},
"field2": {
"type": "integer"
}
}
}
]
}
need validate json is
[
{
"field1": "1599733411",
"field2": 1
},
{
"field2": "1"
}
]
field1 is required, field2 is integer, in the json data: field1 is empty,field2 is string , but the validation passed.