Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leandroimail opened this issue Feb 6, 2023 · 0 comments

Comments

@leandroimail
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant