OpenAPITools / OpenAPITools/openapi-generator

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

Open Beginner friendly
#24,048 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Description

Constants for paths were added for spring-boot library in #1385, but they are still not generated for spring-http-interface library.

https://github.com/OpenAPITools/openapi-generator/blob/v7.23.0/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache#L142

String PATH_{{#lambda.uppercase}}{{#lambda.snakecase}}{{{operationId}}}{{/lambda.snakecase}}{{/lambda.uppercase}} = "{{{path}}}";

Solution

Support the same feature for library spring-http-interface

https://github.com/OpenAPITools/openapi-generator/blob/v7.23.0/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/api.mustache#L49

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the existing path-constant template in modules/openapi-generator/src/main/resources/JavaSpring/api.mustache with libraries/spring-http-interface/api.mustache. Start by reading the referenced template sections, then make the spring-http-interface output include equivalent operation path constants and verify generated APIs contain them.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
84/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.