Nuno Frias
06/19/2024, 12:02 PMTy
06/19/2024, 12:30 PMoneOfNuno Frias
06/19/2024, 12:32 PMNuno Frias
06/19/2024, 12:32 PMNuno Frias
06/19/2024, 12:33 PMTy
06/19/2024, 12:33 PMTy
06/19/2024, 12:33 PMMatt (pactflow.io / pact-js / pact-go)
Nuno Frias
06/19/2024, 12:49 PMNuno Frias
06/19/2024, 12:51 PMMatt (pactflow.io / pact-js / pact-go)
I will have to use consumer-driven contract testing for this, as for the same endpoint there are effectively multiple combinations of request/response, and there is currently no way of modelling that in OAS.Just so we’re clear. In OpenAPI you can model different input/output shapes - that’s achieved through polymorphisms (e.g.
anyOf, oneOf and allOf). What you can’t describe in an OAS is “if I get this input, then I should send this specific output). You can say “These are the allowed inputs” and “these are the allowed outputs”Matt (pactflow.io / pact-js / pact-go)
Is there a plan to expand Bi-Directional CT for asynchronous interactions ? (edited)eventually, yes. What use case do you have (to help us prioritise)?
Nuno Frias
06/20/2024, 9:43 AMNuno Frias
06/20/2024, 9:56 AMNuno Frias
06/20/2024, 9:59 AMMatt (pactflow.io / pact-js / pact-go)