Skip to content

invalid go code generated from YAML containing literal values #335

@wtask

Description

@wtask

portion of source spec:

    response-status-flag:
      title: Response status value
      type: integer
      minimum: 0
      maximum: 1
      description: |
        The value `1` indicates all data objects provided are valid.
        This does not signify a valid project token or secret.
        The value `0` indicates one or more data objects in the body are invalid.

generated go code (with errors):

// The value `1` indicates all data objects provided are valid.
This does not signify a valid project token or secret.
The value `0` indicates one or more data objects in the body are invalid.

type ResponseStatusFlag  int

oapi-codegen v1.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions