-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
ProviderStateParameters - are defaulting to String #1110
Comments
I am unable to reproduce this. Pact-JVM keeps the types, so this issue must exist in Pact-JS. I'll move the issue there. Are you able to supply the Pact file as well as the test? |
I think this relates to pact-foundation/pact-reference#298. |
This is still an issue with Pact-JVM too my consumer tests are written in Pact-JS Pact file created
Provider written in Java -> logs
|
In the Provider test, I am setting a number value in the request body. However when the test runs its converts it from an Integer to String.
In my consumer everything works and contract generated correctly:
I have the following line in my request body
accountId: fromProviderState('${accountId}', accountId)
In the debug logs I can see it populating correctly with correct type
In my provider:
In the debug logs:
Both consumer (pact-js) and provider (pact-jvm) are on the latest version
The text was updated successfully, but these errors were encountered: