pactflow / swagger-mock-validator

Other
13 stars 4 forks source link

Support for Logical keywords #10

Closed tl-madhulika-mitra closed 1 year ago

tl-madhulika-mitra commented 2 years ago

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 commented 1 year ago

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