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

Fix swagger syntax of api.yaml. swagger2 does not support oneOf #92

Open
ioggstream opened this issue May 7, 2019 · 0 comments
Open

Comments

@ioggstream
Copy link

ioggstream commented May 7, 2019

I expect

syntax of src/tests/api.yaml to be correct

Instead

opening on swagger editor I get the following error:

Structural error at definitions.OneOfTest
should NOT have additional properties
additionalProperty: oneOf
Jump to line 69

Note

This is because gen-api-models supports oneOf schema feature from OAS3. This ticket
could be closed once OAS3 support will be completed:

  • the swagger2 schema will remove this test from the yaml
  • the openapi3 schema will support this use-case
This was referenced May 8, 2019
@ioggstream ioggstream changed the title Fix swagger syntax of api.yaml Fix swagger syntax of api.yaml. swagger2 does not support oneOf Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant