Skip to content

Allow boolean values in enum #785

@harrystuart

Description

@harrystuart

Describe the bug

Error(s) encountered while generating, client was not created

Failed to parse OpenAPI document

4 validation errors for OpenAPI
components -> schemas -> ErrorResponse -> $ref
  field required (type=value_error.missing)
components -> schemas -> ErrorResponse -> properties -> error -> $ref
  field required (type=value_error.missing)
components -> schemas -> ErrorResponse -> properties -> error -> enum -> 0
  value is not a valid integer (type=type_error.integer)
components -> schemas -> ErrorResponse -> properties -> error -> enum -> 0
  str type expected (type=type_error.str)

To Reproduce
Steps to reproduce the behavior:
openapi-python-client generate --url https://topaz.grv.org.au/docs/swagger.json

Expected behavior
API Client generation.

OpenAPI Spec File
A link to your openapi.json which produces this issue.
I tried converting this to OpenAPI3.0 with the same issue.

Desktop (please complete the following information):

  • OS: Windows 11
  • Python Version: 3.11
  • openapi-python-client version 0.15.0

Additional context
Is this an issue with the spec file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions