Skip to content

Generate path constant for spring-http-interface library - #24946

Open
Natarajan717 wants to merge 2 commits into
OpenAPITools:masterfrom
Natarajan717:feature/issue24048-fix
Open

Natarajan717 wants to merge 2 commits into
OpenAPITools:masterfrom
Natarajan717:feature/issue24048-fix

Conversation

@Natarajan717

@Natarajan717 Natarajan717 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

… (fixes #24048)

PR checklist

  • Read the contribution guidelines.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in WSL)
    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.
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.
    @wing328 could you take a look when you have a chance? You merged my previous two contributions (fix: [JAVA][rest-assured] missing swagger2 tags package import in generated API class #23946, fix: x-pattern-message ignored for list items in Spring generator #23910).

Summary by cubic

Generates a path constant for each operation in the spring-http-interface library and reuses it in the @HttpExchange annotation, so callers can reference paths without hardcoding strings (fixes #24048).

  • Adds a PATH_<OPERATION_ID> constant per operation.
  • Updates @HttpExchange's value attribute to reference the constant.
  • Adds a test verifying the constant generation and annotation reuse.

Written for commit 9e9dd5f. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REQ] Generate constants for paths for spring-http-interface library

1 participant