-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
allow operationId be ignored when generating operation names #2043
base: main
Are you sure you want to change the base?
Conversation
bin/index.js
Outdated
@@ -19,6 +19,7 @@ const params = program | |||
.option('--exportCore <value>', 'Write core files to disk', true) | |||
.option('--exportServices <value>', 'Write services to disk', true) | |||
.option('--exportModels <value>', 'Write models to disk', true) | |||
.option('--ignoreOperationId <value>', 'Use operation id', true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.option('--ignoreOperationId <value>', 'Use operation id', true) | |
.option('--ignoreOperationId <value>', 'Ignore operation id', true) |
Although I agree with the initial intent – make the flag opt-in and default to true to preserve current functionality
.option('--ignoreOperationId <value>', 'Use operation id', true) | |
.option('--useOperationId <value>', 'Use operation id', true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the next commit. Thanks for the review.
@askvortcov want to open this pull request against our fork? |
…tent throughout the codebase and documentation
e8e7a31
to
af4dfb7
Compare
@mrlubos, Done. There is a merge conflict though. If I merge it it pulls too many commits along. |
@askvortcov no worries, I will resolve it! |
e4c3846
to
af4dfb7
Compare
Adds a CLI parameter
--useOperationId
, which allows using or ignoring OperationId in the swagger and relies on the path to generate operation names.Use path placeholders to decorate operation names.
Ignoring operation ID is handy when working with a swagger generated by
springdoc-openapi
, since it generates messy operation IDs when confronted with multiple possibilities ofAccept
header.resolves #1525