OpenAPITools / OpenAPITools/openapi-generator
[REQ] Update go generator to honor type and format for numbers
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.
When generating go code from an openapi spec built based on the YANG data modeling language, more specific type information is included by specifying both the type and format. I need to be able to generate go code from these specs that uses the correct data types.
Describe the solution you'd like
The code generators already support registering type+format mappings via typeMappings. I would like to expand these mappings for the go generator to include all possibilities for go numeric types.
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
Start by locating the Go generator's existing typeMappings and review how type-plus-format mappings are registered. Done means the mappings cover all Go numeric type possibilities and generated code uses the more specific type information from the OpenAPI specification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100