pact-foundation / pact-specification

Describes the pact format and verification specifications
MIT License
295 stars 28 forks source link

Support user specified identifier for interactions #72

Closed bethesque closed 2 years ago

bethesque commented 4 years ago

I'd like to make it easier to re-use the interactions that are written in a pact file for seeding other stubs. I think that allowing a user to specify their own unique identifier for an interaction would help this re-use by allowing them to:

We do already have an identifier _id that gets assigned by the pact broker, but it isn't available unless you've published and retrieved the pact back from the broker.

The field would be optional, and the only rule would be that should be a UTF-8 string, no spaces.

uglyog commented 3 years ago

Initial V4 implementation in Rust and JVM has an optional key attribute