Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong use of discriminator feature in OpenAPI specification #263

Open
apibugsreporting opened this issue Feb 17, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@apibugsreporting
Copy link

Bug Description

The discriminator feature is being incorrectly used in the OpenAPI specification.

See screenshot.
Screenshot 2022-02-17 at 16 04 26

The discriminator property should be an object with a property called propertyName, which should contain the discriminator property (i.e., "type"). Moreover, the discriminator feature should be used in conjunction with anyOf or oneOf keywords, but none of these are used. For references on how to use the discriminator feature in OpenAPI, take a look at:

@apibugsreporting apibugsreporting added the bug Something isn't working label Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant