Hacker News new | ask | show | jobs
by ivan888 820 days ago
I think going from code to OpenAPI makes a lot more sense, at least for strong typed languages. And even if not directly translated from code, at least closer to the actual code, in annotations or something. Generating the spec from code removes a step, where you simply need to update code, rather than update the spec then update the code
1 comments

Completely agree. Keeping the openapi spec as tightly coupled to types in code builds a single source truth from your development to your deployment