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

Message Provider - Provide access to, and validate message metadata #6

Open
bethesque opened this issue Apr 4, 2018 · 4 comments
Open
Milestone

Comments

@bethesque
Copy link
Member

No description provided.

@jeremy-ebler-vineti
Copy link

@bethesque We're also looking for this feature. Is there any current progress, or would you like a PR?

@bethesque
Copy link
Member Author

I've love a PR! It shouldn't be much work, but I have a massive backlog at the moment. Happy to help out anyone who wants to pick it up.

@counterbeing
Copy link

@jeremy-ebler-vineti Are you currently working on this? I'm also interested in it :)

@YOU54F
Copy link
Member

YOU54F commented Aug 15, 2024

Couple of associated PR's/commits

interaction level metadata can be written with with_metadata on the consumer side, but it is not available at the provider side.

In pact-js now, which uses the pact_ffi, there is a new function providerWithMetadata in which the user is expected to return an object that returns not only the contents, but the metadata as well

https://github.com/pact-foundation/pact-js/blob/master/docs/messages.md#provider-producer

I imagine pact-ruby will need updates to accept to send the metadata in the message provider dsl, and for a consumer facing function to allow the user to provide the metadata to be validated

https://github.com/pact-foundation/pact-ruby/blob/17ce64bd2d43841144b6810a36746654f6fb8560/lib/pact/provider/configuration/message_provider_dsl.rb#L13-L15

@YOU54F YOU54F changed the title Add support for reading and writing metadata as per v3 spec Message Provider - Provide access to, and validate message metadata Aug 15, 2024
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

4 participants