Y
Hacker News
new
|
ask
|
show
|
jobs
by
946789987649
302 days 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.
2 comments
jamietanna
301 days ago
I'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
link
JimDabell
302 days ago
You can specify multiple media types in OpenAPI.
link