Hi, I'm having issues with my consumer contract te...
# pactflow
e
Hi, I'm having issues with my consumer contract testing for the request body error
Request body is incompatible with the request body schema in the spec file: must NOT have additional properties
but without specific properties.
Copy code
request.body = {"content":{"StreamIds":["testStreamId"]},"contentType":"application/json","encoded":false}
I don't know why the request body contains properties "contentType" and "encoded" which I only define the content in the JsonBody under PactBuilder
new { StreamIds = new[] { _testStreamId } }
. Having no clues on how to fix the error, any ideas or suggestions will be sincerely appreciated.
m
any chance you could share the pact file and OAS? Or a redacted version that reproduces the error?
e
Hi @Matt (pactflow.io / pact-js / pact-go) thank you for your reply and problem has been solved due to OAS schema changed.