We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 833a70c + dc001c2 commit 5fb3d9fCopy full SHA for 5fb3d9f
tests/draft4/ref.json
@@ -155,5 +155,25 @@
155
"valid": false
156
}
157
]
158
+ },
159
+ {
160
+ "description": "property named $ref that is not a reference",
161
+ "schema": {
162
+ "properties": {
163
+ "$ref": {"type": "string"}
164
+ }
165
166
+ "tests": [
167
168
+ "description": "property named $ref valid",
169
+ "data": {"$ref": "a"},
170
+ "valid": true
171
172
173
+ "description": "property named $ref invalid",
174
+ "data": {"$ref": 2},
175
+ "valid": false
176
177
+ ]
178
179
0 commit comments