-
-
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
Provider state params not serialized correctly in pact file #1234
Comments
uglyog
pushed a commit
that referenced
this issue
Oct 31, 2020
Version 4.1.10 has been released with this fix |
Hey @uglyog thanks for the updates, I tried version 4.1.10 but it seems serialization is still not working for immutable objects.
|
@diana-zaharia It needs to be a POJO. Just call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spotted issue in pact-jvm v4.1.9, but I assume all versions since 4.1.0 (which dropped Gson library for json parsing) are affected.
When sending any custom object as provider state param, it gets written to pact file as
null
E.g. specifying a provider state as:
will get written to pact file as:
Any primitives or boxed primitives seem to be serialized fine.
The text was updated successfully, but these errors were encountered: