-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix refs components decoding #90
Conversation
use decodeURIComponent instead of decodeURI
3 similar comments
Hey @BigstickCarpet 🙌! Thanks in advance! |
Hi @RomanGotsiy - sorry for taking so long to look at this. I've been super busy at work and haven't had any time. I'm hesitant to merge this without a test, or at least an example of a schema that doesn't work without this change. This block of code... ...is directly related to this block of code: It seems like either both of them should change, or neither of them, but not just one or the other. |
Hey @BigstickCarpet! Thanks |
@RomanGotsiy - I reviewed the spec and found that you're correct. It should be |
Nice! Thanks a lot for your work! 🙇 |
The following ref was incorrectly resolved by the
Pointer.parse
method:Note that
+
inapplication/vnd.example%2Bjson
is not decoded.The reason is usage of
decodeURI
. Instead,decodeURIComponent
should be used (tokens are components of the pointer)