-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Tilda (~) as in GET parameter name #387
Comments
Good question, it looks like the RFC 6570 allows |
After reading the RFC 6570 more carefully Basically you can have |
Fascinating. |
For me this specification is fascinating, very hard to follow just from the
context :)
So for now I only believe it is right that `~` cannot be part of variable
name - I do not see it yet..
śr., 15 mar 2017 o 01:26 użytkownik Jon Ursenbach <notifications@github.com>
napisał:
… Fascinating.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#387 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADFp4keQ_KXrgQY-qJZ7-LCm-flNA1Z3ks5rlzBPgaJpZM4MbPW0>
.
|
I might try to clarify using the grammar there. Here's the relevant bit of grammar and explanation follows below.
Finally the important part says that
Hope that it sheds some light the topic. |
Thank you @w-vi ! While we are on that, one interesting paragraph is (https://tools.ietf.org/html/rfc6570#section-2.3):
According to this paragraph, if I use Apiary, however, automatically changes such uri into Is this according to the specification, am I missing something? |
Yeah, this is blurry, but I think that the pct-encoded means that when processing template you should not decode but when presenting the resulting URI you can. So filling the variables you need to keep the encoding but when you show it to the user you can decode. |
But does it mean then that user is allowed to enter the decoded character as a uri? I will close this issue now :) |
In URI |
Sure, thanx |
In my API I have a GET parameter {?~ids} which means "ids that will not be included in response".
However when I try to do this I get a warning:
Why do you restrict ~ from GET parameters?
See: http://stackoverflow.com/questions/1455578/characters-allowed-in-get-parameter for a reference of allowed characters.
The text was updated successfully, but these errors were encountered: