-
Notifications
You must be signed in to change notification settings - Fork 17
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
Generated Operation IDs contain unwanted characters #13
Comments
I agree. Would be great if you could do a PR. I would use However, we need to avoid collisions (for example for Also, we need to use path with the param types stripped out (after merge of #12). |
Also, maybe would be better to just remove the autogenerated operation IDs at all. Because tools that use them (codegens) have their own defaults in case they’re missing. And in case someone is not satisfied with defaults we’ll support explicit way (from #14) |
I agree, it would be probably better to remove the auto-generated Operation IDs altogether. The best code is no code at all! |
The use of
-
as a placeholder character that replaces non-word characters of the path to produce an Operation ID seems to be a poor choice. The specification says:And use of
-
definitely does not follow common programming naming conventions. As a result, the Swagger's code generator that I use (swagger-codegen-cli-2.3.1.jar
) can't produce a working code for such operationIds.Thus, I suggest changing the placeholder character to
_
.The text was updated successfully, but these errors were encountered: