Open derigible opened 7 years ago
Note that the array validation does work with this schema.
Finally, should the following schema
{
type: 'object',
required: ['value'],
properties: {
value: {
type: %w(array object),
items: {
type: %w(string boolean number)
},
additionalProperties: { type: 'string' }
}
}
}
also supposed to throw an error on { value: { b: 1, a: 'a'} }
? Because currently it does not.
Given the following schema:
the additionalProperties does not get applied. The sample data I am using is:
The extra b property should have failed the schema. Additionally, if you change the schema to look as follows:
does not validate against the following:
where b should fail as it is a zero.