openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

allow operationId be ignored when generating operation names

Open askvortcov opened this issue 1 year ago • 3 comments

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 of Accept header.

resolves #1525

askvortcov avatar Feb 19 '24 22:02 askvortcov

@askvortcov want to open this pull request against our fork?

mrlubos avatar Feb 20 '24 08:02 mrlubos

@askvortcov want to open this pull request against our fork?

@mrlubos, Done. There is a merge conflict though. If I merge it it pulls too many commits along.

askvortcov avatar Feb 20 '24 10:02 askvortcov

@askvortcov no worries, I will resolve it!

mrlubos avatar Feb 20 '24 10:02 mrlubos