Skip to content

Commit 4811789

Browse files
committed
Also add an anchor test with valid prefix (but still invalid).
1 parent b62f97c commit 4811789

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

tests/draft-next/anchor.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@
214214
"description": "JSON pointers are not valid",
215215
"data": { "$anchor" : "/a/b" },
216216
"valid": false
217+
},
218+
{
219+
"description": "invalid with valid beginning",
220+
"data": { "$anchor" : "foo#something" },
221+
"valid": false
217222
}
218223
]
219224
}

tests/draft2019-09/anchor.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@
215215
"description": "JSON pointers are not valid",
216216
"data": { "$anchor" : "/a/b" },
217217
"valid": false
218+
},
219+
{
220+
"description": "invalid with valid beginning",
221+
"data": { "$anchor" : "foo#something" },
222+
"valid": false
218223
}
219224
]
220225
}

tests/draft2020-12/anchor.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@
215215
"description": "JSON pointers are not valid",
216216
"data": { "$anchor" : "/a/b" },
217217
"valid": false
218+
},
219+
{
220+
"description": "invalid with valid beginning",
221+
"data": { "$anchor" : "foo#something" },
222+
"valid": false
218223
}
219224
]
220225
}

0 commit comments

Comments
 (0)