Does Pact net supports application/json-patch+json content type?

324 views Asked by At

I am currently not able to create contracts for the API calls that takes JsonPatchDocument object as body in PATCH request. Although I tried to build the body (JsonPatchDocument) using ExpandoObject Pact is considering the body content type as application/json only.

Can someone please help? looks none of our services that has got JsonPatchDocument object can be tested.

1

There are 1 answers

0
Matthew Fellows On

Pact should support this content type (it's still valid JSON, it's just a specific shape). If it doesn't, it's a bug and should be fixed.