feat(java-spring): operationId is extracted as a constant for Spring Boot api definitions - #24479
feat(java-spring): operationId is extracted as a constant for Spring Boot api definitions#24479Rokko11 wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Thanks for the PR. Do we need an option for this or this enhancement should be included for everyone? |
With option it would be backward compatible, but if preferred I'll drop the configuration option. |
…Boot api definitions
|
without the option, please elaborate what it breaks |
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
cc @cachescrubber (2022/02) @welshm (2022/02) @MelleD (2022/02) @atextor (2022/02) @manedev79 (2022/02) @javisst (2022/02) @borsch (2022/02) @banlevente (2022/02) @Zomzog (2022/09) @martin-mfg (2023/08)
Summary by cubic
Extracts operationId into String constants in the
java-springgenerator and references them from@Operation(operationId=...). This removes repeated string literals and aligns with existingPATH_*constants.OPERATION_<OPERATION_ID>and annotations referenceClassName.OPERATION_<OPERATION_ID>.Written for commit e4c2228. Summary will update on new commits.