Skip to content

Support top level oneOf and anyOf #388

Description

@forest-benchling

Describe the bug
If a top-level schema is defined using oneOf or anyOf, the generated model has no properties.

To Reproduce
See this PR which adds a test case for the bug: #387

Expected behavior
It should work the same way as it does for model properties, i.e., constructing a union type.

OpenAPI Spec File
#387

Desktop (please complete the following information):

  • OS: [e.g. macOS 10.15.1]
  • Python Version: [e.g. 3.8.0]
  • openapi-python-client version [e.g. 0.1.0]

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions