Skip to content

Commit 232f079

Browse files
Revert removal of additionalProperties applicator tests in v1
1 parent b4032b9 commit 232f079

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/v1/additionalProperties.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,23 @@
120120
}
121121
]
122122
},
123+
{
124+
"description": "additionalProperties does not look in applicators",
125+
"schema": {
126+
"$schema": "https://json-schema.org/v1",
127+
"allOf": [
128+
{"properties": {"foo": {}}}
129+
],
130+
"additionalProperties": {"type": "boolean"}
131+
},
132+
"tests": [
133+
{
134+
"description": "properties defined in allOf are not examined",
135+
"data": {"foo": 1, "bar": true},
136+
"valid": false
137+
}
138+
]
139+
},
123140
{
124141
"description": "additionalProperties with null valued instance properties",
125142
"schema": {

0 commit comments

Comments
 (0)