Skip to content
Snippets Groups Projects
Commit ee14193a authored by Alvaro Cabrera's avatar Alvaro Cabrera
Browse files

Basic impl for minProperties/maxProperties

parent e0ecefff
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -25,6 +25,33 @@ ...@@ -25,6 +25,33 @@
} }
}, },
"valid": true "valid": true
},
{
"description": "should handle minProperties",
"schema": {
"type": "object",
"properties": {
"x": { "type": "string" },
"y": { "type": "string" }
},
"required": ["x", "y"],
"minProperties": 2
},
"valid": true
},
{
"description": "should handle maxProperties",
"schema": {
"type": "object",
"patternProperties": {
"a+": { "type": "string" },
"b+": { "type": "string" },
"c+": { "type": "string" }
},
"minProperties": 1,
"maxProperties": 2
},
"valid": true
} }
] ]
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment