py-models-parser icon indicating copy to clipboard operation
py-models-parser copied to clipboard

Make Parser and Convert Models from OAS3 (open api specification 3 / swagger) to Python Models

Open leandroimail opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Today it is possible from OAS3/Swagger to make a model for Fask or FastAPi (https://openapi-generator.tech/docs/generators/python-flask), but it is super complicated use this program, first of all, that built in Java, second of all this program do not create a ORM schema.

So, today I make a script in Python to convert OAS3 Schema to SQL DDL and use your packages to create ORM schema the way I can create a FastAPI from a OAS3 and a SQLAlchemy ORM altomatically.

But it is easier to create directly with omymodel or py-models-parser in a unique shot.

Describe the solution you'd like My proposal is a way to parse models from OAS3/Swagger to Python model

Describe alternatives you've considered It is possible convert OAS3 in SQL Schema. Today I did not use Simple-SQL-Parse dictonary schema, but I would use this structure to make easier conversion.

leandroimail avatar Feb 06 '23 14:02 leandroimail