Redocly / redocly-cli

⚒️ Redocly CLI makes OpenAPI easy. Lint/validate to any standard, generate beautiful docs, and more.
https://redocly.com/docs/cli/
MIT License
952 stars 149 forks source link

Override operationId `operation-id-override` #1802

Open maxim-at-moralis opened 1 week ago

maxim-at-moralis commented 1 week ago

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

tatomyr commented 1 week ago

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.