Skip to content

Commit b4032b9

Browse files
Revert removal of additionalProperties applicator tests in draft2020-12
1 parent df833be commit b4032b9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/draft2020-12/additionalProperties.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,24 @@
124124
}
125125
]
126126
},
127+
{
128+
"description": "additionalProperties does not look in applicators",
129+
"specification":[ { "core": "10.2", "quote": "Subschemas of applicator keywords evaluate the instance completely independently such that the results of one such subschema MUST NOT impact the results of sibling subschemas." } ],
130+
"schema": {
131+
"$schema": "https://json-schema.org/draft/2020-12/schema",
132+
"allOf": [
133+
{"properties": {"foo": {}}}
134+
],
135+
"additionalProperties": {"type": "boolean"}
136+
},
137+
"tests": [
138+
{
139+
"description": "properties defined in allOf are not examined",
140+
"data": {"foo": 1, "bar": true},
141+
"valid": false
142+
}
143+
]
144+
},
127145
{
128146
"description": "additionalProperties with null valued instance properties",
129147
"specification": [ { "core":"10.3.2.3" } ],

0 commit comments

Comments
 (0)