Skip to content

Commit b6f129e

Browse files
committed
patternProperties are not additionalProperties in draft3 either.
1 parent 20fe647 commit b6f129e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/draft3/additionalProperties.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"additionalProperties being false does not allow other properties",
55
"schema": {
66
"properties": {"foo": {}, "bar": {}},
7+
"patternProperties": { "^v": {} },
78
"additionalProperties": false
89
},
910
"tests": [
@@ -21,6 +22,11 @@
2122
"description": "ignores non-objects",
2223
"data": [1, 2, 3],
2324
"valid": true
25+
},
26+
{
27+
"description": "patternProperties are not additional properties",
28+
"data": {"foo":1, "vroom": 2},
29+
"valid": true
2430
}
2531
]
2632
},

0 commit comments

Comments
 (0)