added test to illustrate $ref defining a new scope
"valid": false
}
]
+ },
+ {
+ "description": "ref creates new scope when adjacent to keywords",
+ "schema": {
+ "$defs": {
+ "A": {
+ "unevaluatedProperties": false
+ }
+ },
+ "properties": {
+ "prop1": {
+ "type": "string"
+ }
+ },
+ "$ref": "#/$defs/A"
+ },
+ "tests": [
+ {
+ "prop1": "match",
+ "prop2": 1,
+ "valid": true
+ }
+ ]
}
]
