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

Method MessagePactBuilder#withContent does not add the generators to the message from the body (DslPart) #1278

Closed
theovanessen opened this issue Dec 22, 2020 · 2 comments

Comments

@theovanessen
Copy link

I made a consumer contract test for amqp messaging and used the dateExprssion and the dateTimeExpression in the body of the message.
It noticed that there were no generator configurations in the generated contract. As a result of which the provider cannot use the generators.

When I look at the function MessagePactBuilder#withContent(body: DslPart) I don't see that the generators from the body (DslPart) are copied into the message, like this is done in the RequestResponseInteraction#requestToMap and the RequestResponseInteraction#responseToMap methods for the HTTP consumer request and response data.
The method MessagePactBuilder#withMetadata(metadata: Map<String, Any>) does add the generators for the metadata section.

@uglyog
Copy link
Member

uglyog commented Dec 28, 2020

4.1.13 released

@theovanessen
Copy link
Author

The generators are present.
Thanks for the quick fix.

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

No branches or pull requests

2 participants