3 ms·
If you use something like an OpenAPI generator and want to have different DTOs in your version 2, then you cannot do what you suggested.
by 946789987649 1y ago
If you use something like an OpenAPI generator and want to have different DTOs in your version 2, then you cannot do what you suggested.
- JimDabell 1y agoYou can specify multiple media types in OpenAPI.
- jamietanna 1y agoI've been using OpenAPI for years with multiple versioning types (header based, content negotiation + media type based) and haven't had issues across Java, Typescript or Go with generating the right code for it