Skip to content

Commit eadeacb

Browse files
authored
Merge pull request #262 from leadpony/fix-ref
Fix $ref value as properly percent-encoded.
2 parents 8feaea4 + 3aa8d8f commit eadeacb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/draft4/ref.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
"description": "refs with quote",
302302
"schema": {
303303
"properties": {
304-
"foo\"bar": {"$ref": "#/definitions/foo\"bar"}
304+
"foo\"bar": {"$ref": "#/definitions/foo%22bar"}
305305
},
306306
"definitions": {
307307
"foo\"bar": {"type": "number"}

tests/draft6/ref.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
"description": "refs with quote",
334334
"schema": {
335335
"properties": {
336-
"foo\"bar": {"$ref": "#/definitions/foo\"bar"}
336+
"foo\"bar": {"$ref": "#/definitions/foo%22bar"}
337337
},
338338
"definitions": {
339339
"foo\"bar": {"type": "number"}

tests/draft7/ref.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
"description": "refs with quote",
334334
"schema": {
335335
"properties": {
336-
"foo\"bar": {"$ref": "#/definitions/foo\"bar"}
336+
"foo\"bar": {"$ref": "#/definitions/foo%22bar"}
337337
},
338338
"definitions": {
339339
"foo\"bar": {"type": "number"}

0 commit comments

Comments
 (0)