OpenAPITools / OpenAPITools/openapi-generator
[REQ] spring generator generate RequestParams objects
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
I'd like to see a model class generated for request parameters.
probable this should take some options, as it may not be for controllers, basically the option not to add spring mvc annotations. Really I want it so that we don't forget any. In addition generating the static strings for endpoints would still be nice.
openApiGenerate {
generatorName = "spring"
library = "spring-boot"
inputSpec = "$projectDir/src/main/resources/openapi.json".toString()
outputDir = layout.buildDirectory.dir("generated/sources/openapi").get().toString()
configOptions.putAll([
openApiNullable : "false",
generateApis : "false",
generateSupportingFiles: "false",
serializationLibrary : "jackson",
interfaceOnly : "true",
annotationLibrary : "none",
documentationProvider : "none",
])
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The request targets the spring generator and its openApiGenerate configuration, with spring-boot selected in the example. Review the generator’s existing model and request-parameter generation paths first; done should include generated RequestParams model classes, an option for controller annotations, and the requested static endpoint strings where supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi, spring, spring-boot
- Domain
- api, backend, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100