Skip to content

#1385 Generate constants for path in spring boot @RequestMapping - #19782

Merged
wing328 merged 1 commit into
OpenAPITools:masterfrom
bilak:feature/1385-geneate-constants-for-paths
Jul 9, 2025
Merged

#1385 Generate constants for path in spring boot @RequestMapping#19782
wing328 merged 1 commit into
OpenAPITools:masterfrom
bilak:feature/1385-geneate-constants-for-paths

Conversation

@bilak

@bilakbilak commented Oct 4, 2024

Copy link
Copy Markdown
Contributor

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package ./bin/generate-samples.sh ./bin/configs/*.yaml
    ./bin/utils/export_docs_generators.sh
    
    (For Windows users, please run the script in Git BASH)
    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.
  • File the PR against the correct branch: master (upcoming 7.x.0 minor release - breaking changes with fallbacks), 8.0.x (breaking changes without fallbacks)
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

@bbdouglas@sreeshas@jfiala@lukoyanov@cbornet@jeff9finger@karismann@Zomzog@lwlee2608@martin-mfg

closes#1385

@martin-mfg

Copy link
Copy Markdown
Contributor

Hi @bilak, thanks for the PR!

Instead of introducing a new lambda "lambda.camelCaseToSnakeCase", would it work to use the already existing "lambda.snakecase"?

And could you take care of the failing tests please?

@bilak
bilakforce-pushed the feature/1385-geneate-constants-for-paths branch 2 times, most recently from 4e3fd6f to 8a8b74eCompareOctober 24, 2024 15:34
@bilak

Copy link
Copy Markdown
ContributorAuthor

@martin-mfg I'm not sure if I rebased somehow wrong or why 5k files is in this commit. I reverted back my custom lambda and fixed the test...let me know if I should do something additionally

@bilak
bilakforce-pushed the feature/1385-geneate-constants-for-paths branch from 8a8b74e to 4e3a3baCompareOctober 24, 2024 15:41
@bilak

Copy link
Copy Markdown
ContributorAuthor

I've seen also this one I've tried that route but there are some issues in some codegen which I honestly don't udnerstand.

@elagerho

Copy link
Copy Markdown
Contributor

@bilak Any updates on getting this merged? 🙏

@wing328

Copy link
Copy Markdown
Member

sorry for late review

can you please resolve the merge conflicts and i'll try to get it merged and included in the upcoming release?

@bilak
bilakforce-pushed the feature/1385-geneate-constants-for-paths branch from 4e3a3ba to 3950cd5CompareJuly 9, 2025 07:48
@bilak
bilakforce-pushed the feature/1385-geneate-constants-for-paths branch from 3950cd5 to 0f1ceb4CompareJuly 9, 2025 08:05
@wing328
wing328 merged commit 117be2c into OpenAPITools:masterJul 9, 2025
@wing328wing328 added this to the 7.15.0 milestone Jul 9, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SPRING] Create constants for paths

4 participants

@bilak@martin-mfg@elagerho@wing328