pact-foundation / pact-reference

Reference implementations for the pact specifications
https://pact.io
MIT License
91 stars 46 forks source link

feat: add `generate_contents` methods #443

Closed JP-Ellis closed 3 months ago

JP-Ellis commented 3 months ago

The various get_contents FFI method return the raw (unprocessed) contents of the request/response, including all generators and matching rules. The generate_contents alternatives are used to process these generators so that the actual messages as received by the consumer can be retrieved.

JP-Ellis commented 3 months ago

Fixed the points you mentioned above.

I'll add a few tests as well to make sure the functions are working as expected.

JP-Ellis commented 3 months ago

Tests have now been added.