Hello, I have a question regarding keyword support...
# pactflow
r
Hello, I have a question regarding keyword support
oneOf
in the schema...Using BDCT workflow and we have
oneOf
keyword in the schema and I had followed the instructions here : https://docs.pactflow.io/docs/bi-directional-contract-testing/contracts/oas/keyword-support/ and we did dereferencing and inlining $refs with keyword
oneOf
pact results are red and without
oneOf
pact results are green. Can we use
oneOf
keyword in schema to make pact green? Any suggestions? Please refer to the attached observations.
m
also, the embedded files in that word document is not accessible
a
Oh for me the files are accessible
withrefwithoneOf.yml,withrefwithoutanyof_ref.yml,withrefwithoutanyof.yml
@Matt (pactflow.io / pact-js / pact-go) Something is wrong with our OpenAPIspec containing "oneOf" statements. How can we debug the reason of the mismatch, shown in pactflow.io?
m
They are probably linked to your network 🙂
Please see the examples in the repo above as to why your
oneOf
is not working.
Do you have a consumer pact to compare it against?
In any case, you need
additionalProperties
set to
true
at the level of
oneOf
e.g.