Open
Description
Hi.
I have posted a question on stackoverflow because I am not able to make my example work (being validated correctly).
I have the form:
[
{
"key":"foo",
"title":"Test",
"type":"string"
}
]
The schema:
{
"type": "object",
"properties": {
"foo": {
"type": ["number","string"],
"maxLength":2,
"minLength":0,
"minimum":3,
"maximum":10
}
}
}
and the model:
{
"foo": "bar"
}
The problem is that the validation tells me that the model is valid, even though it is not according to the json-schema-validator.
when I post my schema and model in the json-schema-validator, my example work. Why is that? Am I doing something wrong in the form?