Skip to content

[go-gin-server] Add nullable support #1766

Description

@alex-korobko
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
openapi-generator generate --generator-name go-gin-server -i $SPEC -o $AUTO_CODE_DIR
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions