Closed uglyog closed 2 years ago
There has been a few requests to be able to store different types of interactions in the same pact file.
There are two main ways these could be stored:
The interactions section could be changed to something like:
{ "interactions": { "request/response": [ ... ], "message": [ ... ], ... } }
This model is preferred by people who use serialising frameworks (usually based on annotations) because it is easy to model with polymorphism. So this would be:
{ "interactions": [ { "type": "request/response", ... }, ... ] }
Decision is to go with interactions with a type attribute, as this makes it easier to add new types of interactions in the future
There has been a few requests to be able to store different types of interactions in the same pact file.
There are two main ways these could be stored:
Interactions keyed by type
The interactions section could be changed to something like:
Interactions with a type attribute
This model is preferred by people who use serialising frameworks (usually based on annotations) because it is easy to model with polymorphism. So this would be: