Skip to content

Validate that oneOf/anyOf has a discriminator defined #806

Open
@frederikstonge

Description

@frederikstonge

Add a rule to force oneOf and anyOf to define a discriminator.

https://swagger.io/docs/specification/v3_0/data-models/inheritance-and-polymorphism/

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

        Participants

        @frederikstonge

        Issue actions

          Validate that oneOf/anyOf has a discriminator defined · Issue #806 · OpenAPITools/openapi-style-validator