Closed
Description
minProperties
and maxProperties
are for objects and are mentioned here: https://github.com/json-schema/json-schema/wiki/ChangeLog
http://json-schema.org/latest/json-schema-validation.html#anchor54
This looks like it would stop this from working (which is good in some cases):
Schema:
{
"schema": "blah-url",
"type": "object",
"properties": {
"a": {
"type": "boolean"
}
},
"maxProperties": 1
}
input JSON:
{"a": true, "junk_field": 2}
Error would be on the junk_field
being an extra and maxProperties
being exceeded.
Metadata
Metadata
Assignees
Labels
No labels