-
Notifications
You must be signed in to change notification settings - Fork 88
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
base: main
Are you sure you want to change the base?
Remove operation id prefix #865
Conversation
…bohotmail/quarkus-openapi-generator into remove-operation-id-prefix
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?
import static io.quarkiverse.openapi.generator.deployment.CodegenConfig.ConfigName.MODEL_NAME_SUFFIX; | ||
import static io.quarkiverse.openapi.generator.deployment.CodegenConfig.ConfigName.TEMPLATE_BASE_DIR; | ||
import static io.quarkiverse.openapi.generator.deployment.CodegenConfig.ConfigName.VALIDATE_SPEC; | ||
import static io.quarkiverse.openapi.generator.deployment.CodegenConfig.ConfigName.*; |
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.
Please don't use star imports.
@@ -88,6 +88,13 @@ quarkus.openapi-generator.codegen.spec.petstore_json.model-name-suffix=CustomMod | |||
quarkus.openapi-generator.codegen.spec.petstore_json.model-name-prefix=CustomModelPrefix | |||
---- | |||
|
|||
You can customize the name of generated method. To do that, you must define the following properties: |
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.
You can customize the name of generated method. To do that, you must define the following properties: | |
You can customize the name of the generated method. To do that, you must define the following properties: |
Can you please elaborate a bit more this doc?
Many thanks for submitting your Pull Request ❤️!
Please make sure that your PR meets the following requirements:
[0.9.x] Subject
Fix #866
When use smallrye openapi operationid strategy CLASS_METHOD,operationId fields take the form of "class_name_method". For example, "User_findAll".
In this PR, we add a config properties remove-operation-id-prefix,to delete class name from operationId.