Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] Update go generator to honor type and format for numbers #21031

Open
cbascom opened this issue Apr 4, 2025 · 0 comments · May be fixed by #21032
Open

[REQ] Update go generator to honor type and format for numbers #21031

cbascom opened this issue Apr 4, 2025 · 0 comments · May be fixed by #21032

Comments

@cbascom
Copy link
Contributor

cbascom commented Apr 4, 2025

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.

@cbascom cbascom linked a pull request Apr 4, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant