-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[go-gin-server] Add nullable support #1766
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
BTW when openapi-generator generates references, it uses pointers.
the generated model contains pointer to the ProductDimensions struct
|
@alex-korobko Thanks for reporting this issue! cc Technical Committee: @antihax (2017/11) @bvwells (2017/12) @grokify (2018/07) @kemokemo (2018/09 |
Thanks for the attention to the issue, @ackintosh ! I'd be glad to help to fix the issue, if you guys provide some initial guidance. |
@alex-korobko Thanks! There are some PRs helps you as a reference which adds
You may use the mustache tag Please let us know if you need help. 😉 |
Created PR with updated mustache files for all types of Go lang generators. |
Description
It seems like
nullable
is not supported yet for primitive types in model generation for Go . I checked for go-gin-server generation but it seems to be language wide issue.openapi-generator version
openapi-generator version 3.3.4
OpenAPI declaration file content or url
Here is the simple model to check
https://editor.swagger.io/?url=https://gist.github.com/alex-korobko/8d3f4fbe817d4f1420ab779c91dddf94
Command line used for generation
Steps to reproduce
Use spec from the gist file (the link is above in the description).
Try to generate models for generator
go-gin-server
Related issues/PRs
None found so far neither opened nor closed.
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: