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

Support for Logical keywords #10

Closed
tl-madhulika-mitra opened this issue Jul 12, 2022 · 1 comment
Closed

Support for Logical keywords #10

tl-madhulika-mitra opened this issue Jul 12, 2022 · 1 comment

Comments

@tl-madhulika-mitra
Copy link

As per pactflow docs - allOf keyword is called out as not being supported due to Json Schema issues. But are none of the keywords supported like OneOf/AnyOf - since a lot of our apis see false negatives as their response structures have oneOf in them.

@mefellows
Copy link
Contributor

mefellows commented May 24, 2023

We do support both oneOf and anyOf, and technically we support allOf (just with the caveats that the schema testing follows JSON schema rules). The work around is suggested in #14 and seems to work most of the time for that case.

I've added a few examples of how logical keywords are currently supported for common use cases here: https://github.com/pactflow/example-bdct-logical-keywords

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

2 participants