Skip to content

oapi-codegen complains of a discriminator being set when merging allOf schemas #896

Description

@cosnicolaou

The checks in mergeOpenapiSchemas complain if a discriminator is set for any of the schemas being merged. It seems that this should be allowed when merging allOfs (eg. an allOf that contains a one/anyOf with a discriminator). Currently mergeOpenapiSchemas is only called for allOf schemas.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions