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: allOf match logic #67

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

ODAEL
Copy link
Contributor

@ODAEL ODAEL commented Jun 4, 2021

We cannot simply merge allOf schemas, because it can contain different fields (nested allOfs, oneOfs etc.) that may result in invalid schema after merging.
It's safer and clearer to match schemas one by one, my PR is about that.

In addition, now additionalProperties:

  • interpreting - true => {}, false => null;
  • defaults to true

(https://swagger.io/specification/)

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

Successfully merging this pull request may close these issues.

1 participant