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

added valueFromProviderState on LambdaDslObject #1196

Merged
merged 1 commit into from
Aug 30, 2020
Merged

added valueFromProviderState on LambdaDslObject #1196

merged 1 commit into from
Aug 30, 2020

Conversation

diana-zaharia
Copy link

@diana-zaharia diana-zaharia commented Aug 25, 2020

Currently valueFromProviderState is not available directly from LambdaDSL API so we would need some workaround like this:

LambdaDslJsonBody lambdaDslJsonBody = LambdaDsl.newJsonBody(body -> body.stringType("name"));
PactDslJsonBody pactDslJsonBody = lambdaDslJsonBody.getPactDslObject();
pactDslJsonBody.valueFromProviderState("id", "${id}", "1");

I simply added the method on LambdaDslObject to have direct access

@uglyog uglyog merged commit 6770952 into pact-foundation:master Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants