-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
API created with 'path' can not have a name #547
Comments
👍 |
In my implementation I replace slashes (except the first one) by dashes. But that is not a problem anymore, consider this resolved, the real issue here is #489. Are we satisfied with forbidding reserved characters or do we want to allow them and deal with percent-encoded URI parameters? |
@thibaultcha i would forbid them, or slugify them |
That also means no more spaces. |
Slugifying parameters also brings some new issues:
Although slugs are the de-facto solution to this problems pretty much everywhere in the web. I don't know. What's your idea on this issue? |
No, slugs have never been a solution for me because I think it is better to refuse a value if it contains invalid characters than unpredictably change them, which is a confusing experience. However, when the name is not specified, and is taken from the |
@thibaultcha so the following request_path: Makes sense to remove the first and last slash too maybe? |
Obviously, already done. |
- API names cannot contain characters from RFC 3986 reserved characters list. If such a character is detected, it is a schema error and the creation/update is refused. - This also sets an API's name to the given `request_path` if no `request_dns` is set. The first slash is omitted and subsequent slashes are replaced with dashes. - Since spaces are not allowed anymore in API names, fixture APIs must comply too. See #547, #489
See #560 for both those issues. If restricting characters in an API names is what we chose, then it is the fix. I believe it is reasonable. |
The text was updated successfully, but these errors were encountered: