Wrong validation result for nested objects
eyalAlpha opened this issue · 2 comments
eyalAlpha commented
Validation fails to identify data type miss match in nested object, for example:
...
"properties": {
"example": {
"type": "array",
"items": {
"type": "object",
"map": {
"key": [
"string"
],
"value": [
"number"
]
}
}
}}
Should yields validation error on the following input:
{
"example": [
{"test1": 1,"test2": "1"}
]
}
ORESoftware commented
why should that cause an error? I dont see the problem
eyalAlpha commented
Because the second object is string to string- "1" and not 1.
It's not valid because according t the validation rule, the objects must be string to int.