We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please confirm the following:
That I can return an XML string from a message provider and be able to verify a pact from a message consumer that is also based on an XML string.
The content type on the provider is overridden to application/json so the verification always fails. See here:
pact-js/src/messageProviderPact.ts
Line 153 in ce5973c
Additionally, from first glance it appears that MessageProviderPact assumes that message providers only return JSON. See here:
Line 123 in ce5973c
The text was updated successfully, but these errors were encountered:
Thanks for raising.
I think one way to address it, is to set the content-type header in
content-type
Line 135 in ce5973c
metadata
We would also need to fix
Line 137 in ce5973c
Sorry, something went wrong.
No branches or pull requests
Software versions
Issue Checklist
Please confirm the following:
Expected behaviour
That I can return an XML string from a message provider and be able to verify a pact from a message consumer that is also based on an XML string.
Actual behaviour
The content type on the provider is overridden to application/json so the verification always fails. See here:
pact-js/src/messageProviderPact.ts
Line 153 in ce5973c
Additionally, from first glance it appears that MessageProviderPact assumes that message providers only return JSON. See here:
pact-js/src/messageProviderPact.ts
Line 123 in ce5973c
Steps to reproduce
The text was updated successfully, but these errors were encountered: