-
Notifications
You must be signed in to change notification settings - Fork 113
Remove operation id prefix #865
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
Remove operation id prefix #865
Conversation
…bohotmail/quarkus-openapi-generator into remove-operation-id-prefix
ricardozanini
left a comment
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.
I need help finding what this PR is doing. I'm only seeing an introduction of a property to the generator. What do you do with it after? Or is this something that the underlying generator already takes care of? If so, please add a reference.
Can you also please add some tests under the integration-tests module?
...in/java/io/quarkiverse/openapi/generator/deployment/codegen/OpenApiGeneratorCodeGenBase.java
Outdated
Show resolved
Hide resolved
…erse#858) Bumps [org.openapitools:openapi-generator](https://github.com/openapitools/openapi-generator) from 7.8.0 to 7.10.0. - [Release notes](https://github.com/openapitools/openapi-generator/releases) - [Changelog](https://github.com/OpenAPITools/openapi-generator/blob/master/docs/3.0.0-release-note.md) - [Commits](OpenAPITools/openapi-generator@v7.8.0...v7.10.0) --- updated-dependencies: - dependency-name: org.openapitools:openapi-generator dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ricardo Zanini <[email protected]>
Thanks for the review. |
…kiverse#864) * Fix quarkiverse#852 - Process Qute templates in a strict manner Signed-off-by: Ricardo Zanini <[email protected]> * Fix discriminator annotations on pojo.qute Signed-off-by: Ricardo Zanini <[email protected]> * Improve testing on discriminator annotations Signed-off-by: Ricardo Zanini <[email protected]> * Incorporate @hbelmiro review Signed-off-by: Ricardo Zanini <[email protected]> --------- Signed-off-by: Ricardo Zanini <[email protected]>
|
@yuhaibohotmail, thanks for clarifying it. You can use the |
@ricardozanini , we have the new |
[0.9.x] SubjectFix #866
When use smallrye openapi operationid strategy CLASS_METHOD,operationId fields take the form of "class_name_method". For example, "User_findAll". We want remove operationId prefix (e.g. User_findAll=> findAll)
In this PR, we add a config properties remove-operation-id-prefix,to delete class name from operationId. The properties are passed to the openapi-generator, and the specific functions are executed by the openapi-generator.
https://github.com/OpenAPITools/openapi-generator/blob/4c5a57fe7bae59483bb8fa9218be8dc4f82e1bda/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java#L5638