Skip to content

go-client: Required Tag for property does not function correctly #72

Description

@alexthemayers
                  domains:
                    type: array
                    required: [domain]
                    items:
                      type: object
                      required: [name, enabled]
                      properties:
                        explicit_domain_id:
                          type: string
                        id:
                          type: string
                        name:
                          type: string
                        description:
                          type: string
                        enabled:
                          type: boolean

An open api definition such as this does not cause the generated code to omit the omitempty json tag for the domain, name, and enabled fields in the generated structs.

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions