You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a consumer Pact file containing this response body:
"body": {
"name": {
"first": "Donald"
}
}
And the provider returns this response:
{
"name": {
"first": "Donald",
"last": "Duck"
}
}
Then all is well, the provider verify passes. However if I change the consumer Pact file to this:
"body": {
"name": {
}
}
pact-jvm will return this error when the provider verifies the pact file:
$.body.name -> Expected an empty Map but received Map(first -> Donald, last -> Duck)
This seems like a bug to me. If its not a bug can you please let me know how I can write a consumer Pact file that asserts that the name property is defined within the response but does not care about what values are within the object.
The text was updated successfully, but these errors were encountered:
If I have a consumer Pact file containing this response body:
And the provider returns this response:
Then all is well, the provider verify passes. However if I change the consumer Pact file to this:
pact-jvm will return this error when the provider verifies the pact file:
This seems like a bug to me. If its not a bug can you please let me know how I can write a consumer Pact file that asserts that the
name
property is defined within the response but does not care about what values are within the object.The text was updated successfully, but these errors were encountered: