Closed jayniz closed 8 years ago
@iainbeeston: I saw that you fixed this in b2e4fde in your fork, awesome! Is there anything I can do to help get it released?
@jayniz Sorry, I haven't had time to merge and release this yet, but I might get a chance tomorrow. I'll update this ticket once it's released
Coolio, I tried your patch locally and it works great for me!
@jayniz I've just released v2.6.2, which has the fix
Thank you thank you thank you!
If I read RFC 6901 correctly (and I'm slightly RFC impaired), the colon character
:
should be OK to use in JSON pointers. However,json-schema-2.6.1
will break, check out this ready to run gist.The RFC states:
So a
:
in a JSON pointer should be OK whereas/
and~
must be escaped:If you run the gist, though, you'll see something like
If you paste the schema and data examples from the gist into an online JSON Schema tool like http://jsonschemalint.com/draft4/ it works as expected.