diff --git a/tests/draft4/ref.json b/tests/draft4/ref.json index 7e805522..fe5aa901 100644 --- a/tests/draft4/ref.json +++ b/tests/draft4/ref.json @@ -155,5 +155,25 @@ "valid": false } ] + }, + { + "description": "property named $ref that is not a reference", + "schema": { + "properties": { + "$ref": {"type": "string"} + } + }, + "tests": [ + { + "description": "property named $ref valid", + "data": {"$ref": "a"}, + "valid": true + }, + { + "description": "property named $ref invalid", + "data": {"$ref": 2}, + "valid": false + } + ] } ]