-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
valueFromProviderState method cannot verify values in number type #1061
Comments
If you don't use an expression, it will use the raw value from the state change callback. I.e., .body(new PactDslJsonBody()
.valueFromProviderState("accountId", "accountId", 123)) |
uglyog
pushed a commit
that referenced
this issue
Apr 4, 2020
uglyog
pushed a commit
that referenced
this issue
Apr 5, 2020
uglyog
pushed a commit
that referenced
this issue
Apr 5, 2020
Version 4.0.9 should now work as expected |
@uglyog Is there any way to fix in branch of 3.6.14 because my pacts were created in that version? Thanks so much |
3.6.15 has been released |
Thanks so much @uglyog |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In fact, the data type of "accountId" is number, but values injected from the provider states are parsed as an expression, which will always be a string. So the pact verification always fails.
Please help to update framework verify values in number type.
Thanks
The text was updated successfully, but these errors were encountered: