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

Serialization to Documentation / JSON Schema / OpenAPI / apispec integration #55

Open
insightindustry opened this issue Aug 11, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@insightindustry
Copy link
Owner

Does it make sense to support serialization to (and maybe deserialization from) various documentation formats, including possibly OpenAPI (Swagger)?

If so, does it make sense to integrate with documentation platforms like Sphinx or apispec?

What additional metadata support would be necessary, if any?

@insightindustry insightindustry added enhancement New feature or request question Further information is requested labels Aug 11, 2018
@insightindustry insightindustry self-assigned this Aug 11, 2018
@insightindustry
Copy link
Owner Author

On further consideration, it does not make sense to try to serialize model class metadata to RST or Sphinx. The reason is actually pretty obvious: a model class is already a regular Python class, and so can be documented normally the way one would document anything with docstrings. So built in Sphinx support, by definition.

@insightindustry
Copy link
Owner Author

However, serializing SQLAlchemy model classes to OpenAPI does make sense, and can definitely provide value.

Some further research should be done to figure out the best architecture and API for supporting this functionality.

@insightindustry insightindustry added this to the v.0.4.0 milestone Aug 11, 2018
@insightindustry insightindustry removed the question Further information is requested label Aug 11, 2018
@insightindustry insightindustry removed this from the v.0.4.0 milestone Jan 18, 2019
@insightindustry insightindustry changed the title Serialization to Documentation / OpenAPI / apispec integration Serialization to Documentation / JSON Schema / OpenAPI / apispec integration Jan 8, 2021
@insightindustry
Copy link
Owner Author

Slight tweak to also support the serialization of a table structure to / from JSON Schema.

@max-uzunov
Copy link

Slight tweak to also support the serialization of a table structure to / from JSON Schema.

IMO this would be very valuable as this would allow people not knowing Python & SQLAlchemy to prepare config files with complete "create table" DDL statements in a simplified form (for example in YAML).

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

No branches or pull requests

2 participants