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

Combine duplicate pydantic model definitions into a single one, using OpenAPI references to point out on them #4

Open
surenkov opened this issue Sep 9, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@surenkov
Copy link
Owner

surenkov commented Sep 9, 2022

This is more likely relevant to serializer fields, though may still apply to parsers/renderers, that needs to be figured out.

While rendering serializer schema, we can come up in the situation when multiple fields may refer to the same pydantic model. Currently, each field independently renders its schema into a nested definition. Probably we can extract all common definitions into an upper level and point to them with references.

@surenkov surenkov added the enhancement New feature or request label Sep 9, 2022
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

1 participant