-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
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
ContentType being set as application/json for protobuf messages #265
Comments
Thanks, this is definitely an enhancement required. Somewhere in the messaging part of the framework, the content-type is hard coded but we need to accept the content-type from the user. |
👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (PACT-1174). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps. |
Fixed in v2.0.0-beta.23. Example also added so you can see it in action. |
Software versions
macOS13.2
Pact Go CLI v2.0.0-beta.17
pact-go/v2 v2.0.0-beta.17.0.20221222235702-6e805a539d1b
go1.18.3 darwin/arm64
go env
Expected behaviour
The content type header should be set to the one provided via
Metadata
Actual behaviour
I am trying to setup a producer/consumer pact test for a protobuf based messaging contract. I have the consumer test setup using the protobuf plugin
0.2.4
When setting up the producer test using the
VerifyProvider
I am getting below error:I have the
contentType
correct context type defined in theMetadata
when setting up the messageHandles
Steps to reproduce
Here is the sanitized test I have for the producer
Relevent log files
NA
The text was updated successfully, but these errors were encountered: