Model polymorphism in OpenAPI 3.1: oneOf, anyOf, allOf, and discriminator without breaking clients
An endpoint that returns "a payment" really returns one of several distinct shapes: a card has a last-four and brand, a bank transfer has an IBAN, a wallet has a provider id. Flatten that into one obj
blogs.powerduck.com6 min read