Skip to content

Commit e63cdaf

Browse files
committed
Merge pull request #23 from Antares42/issue21
Issue 21: minProperties:1 but no ValidationException when sending {}
2 parents 07ba71c + c890d4d commit e63cdaf

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"type":"object",
3+
"$schema":"http://json-schema.org/draft-04/schema#",
4+
"definitions":{
5+
"language_object":{
6+
"type":"object",
7+
"additionalProperties":false,
8+
"patternProperties":{
9+
"^[a-z]{2}$":{
10+
"type":"string"
11+
}
12+
}
13+
}
14+
},
15+
"properties":{
16+
"name":{
17+
"$ref":"#/definitions/language_object",
18+
"minProperties":1
19+
}
20+
}
21+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name":{}
3+
}

0 commit comments

Comments
 (0)