-
Notifications
You must be signed in to change notification settings - Fork 20
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
Unable to set operationId using the OpenApiOperation annotation. #556
Comments
Interesting, as a workaround, have you tried altering the operationId's using event listeners? https://github.com/cnizzardini/cakephp-swagger-bake/blob/master/docs/events.md |
No, but I'll try that. Thanks. |
It works, thank you! |
Re-opening to determine if this should be added into the core feature set. |
What version of the library are you using? |
I’m currently using version 2.5.9 because I’m working with CakePHP 4.x, but I plan to upgrade to version 5 soon. |
The default output in swagger.json is generated like this:
Using the #[OpenApiOperation(...)] attribute/annotation, you cannot set the operationId. A generation tool like NSwagStudio produces a C# class with errors, as ":" is not allowed in identifiers.
Invalid token ':' in class ....
The text was updated successfully, but these errors were encountered: