redocly-cli icon indicating copy to clipboard operation
redocly-cli copied to clipboard

Override operationId `operation-id-override`

Open maxim-at-moralis opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Our "operationId" generation is not reliable (there could be duplicates and naming issues) and we would like to control it on client side.

Describe the solution you'd like

Have a bilt-in decorator to override operationId

Describe alternatives you've considered

Manual patching of swagger.json but before the main processing

Additional context

Similar to https://redocly.com/docs/cli/decorators/operation-description-override

maxim-at-moralis avatar Nov 18 '24 11:11 maxim-at-moralis

Could you provide an example of how the decorator should work? Just in case, you can build a custom decorator to achieve that: https://redocly.com/docs/cli/custom-plugins/custom-decorators. Please let me know if I can help you with that.

tatomyr avatar Nov 18 '24 14:11 tatomyr