3 ms·
> - Auto-generation of OpenAPI schemas from those models Is there a package that can do a reverse? Can I give it an OpenAPI spec and get a code stump going?
by ivalm 7y ago
> - Auto-generation of OpenAPI schemas from those models
Is there a package that can do a reverse? Can I give it an OpenAPI spec and get a code stump going?
- drchaim 7y agohttps://github.com/zalando/connexion/ https://github.com/zalando/connexion/ Solves most of the problems for that.
- BerislavLopac 7y agoOpenAPI-generator [0], written in Java, can produce Python stumps, but I never liked that approach. Connexion [1] is built on top on Flask and does routing and validation based on an OpenAPI spec. I've recently started developing Pyotr [2], which does the same only based on ASGI and Starlette. It also includes a client module. [0] https://openapi-generator.tech/ https://openapi-generator.tech/ [1] https://connexion.readthedocs.io/ https://connexion.readthedocs.io/ [2] https://github.com/berislavlopac/pyotr https://github.com/berislavlopac/pyotr