Skip to content

Incorrect Request Body Schema when using both a discriminator and a $ref inside an allOf definition #945

Open
@ITESMEDIA

Description

@ITESMEDIA

If you look at the "Request body schema", the definition of an unrelated definition sharing the same $ref is shown, but the "Request samples" is correct.
The issue only seems to happen if both a $ref and type using a discriminator are used inside the same "allOf" definition.
Screenshot and sample below:
2019-06-14 15_37_36

redoc_sample.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    openapiQuestions about specification, validity, and edge cases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions