News for hackers. Stuff that matters.
Re:OpenAPI Generator allows generation of API client librari... by aserafini on Sunday October 16, 2022 @02:01AM (#33221395)
This is exactly how FastAPI/Pydantic in the Python ecosystem works (and also in Django-ninja for Django).

You compose types representing your request and response shape. Those types validate the API request and it’s response, and also generate the OpenAPI.

Even slight drift between API spec, docs and actual behaviour is impossible in this setup, I couldn’t go back to working any other way!

There are no comments on this comment yet.