Hi there! I was wondering if anyone is using bi-di...
# general
v
Hi there! I was wondering if anyone is using bi-directional contract testing with multiple providers sharing a single contract? I'll thread some context 🧵
I'm working with some code that uses a protocol as an abstraction, to make it easy for consuming code to call the same endpoints on different API providers. I'd like to formalise the protocol as an OpenAPI spec, and contract testing could be helpful to help us understand/keep track of how they're used within our system. I implemented this naively but you end up with
consumer*provider
contracts very quickly, and as it's a protocol we'd like a single provider contract, but with many provider implementations. I've got some ideas on how to make this work but thought I would check in here, in case anyone else is doing this, or it doesn't make sense and I'm misunderstanding something!