Skip to content
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

Cant expect an empty body on the consumer side #1611

Closed
TorbenSp09 opened this issue Sep 22, 2022 · 1 comment
Closed

Cant expect an empty body on the consumer side #1611

TorbenSp09 opened this issue Sep 22, 2022 · 1 comment
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@TorbenSp09
Copy link

Hey,

iam not able to expect an empty body on the consumer side when creating the contract. First my code was:

image

I already read that there is a difference between expecting an empty body and not caring about the body here as there was an issue for JavaScript.

So i changed my code to:

image

But the generated contract is still the same without the body property, which will lead to not caring about the body:

image

The expected behaviour would be that there is an emtpy body expected in the response. ("body": "")

Is there anything iam missing out or is this a bug? Iam using version 4.3.14 of pact with Java version 16.0.1.

@TorbenSp09 TorbenSp09 changed the title Cant expect a empty body on the consumer side Cant expect an empty body on the consumer side Sep 22, 2022
@rholshausen rholshausen added the bug Indicates an unexpected problem or unintended behavior label Oct 25, 2022
@rholshausen
Copy link
Contributor

Fix released with version 4.3.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants