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
OpenApiSerializerFieldExtension target_class behaviour with __all__ #1224
Comments
I would recommend this:
this will hook into the model serializer creation and use your own serializer field instead. The extension in turn will see the field being used and apply the extension. This imho the cleanest way to achieve that change. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Imagine we have a following django model:
and a serializer:
Can I extend generated schema for field
b
ofASerializer
usingOpenApiSerializerFieldExtension
without explicitly redefining the serializer field as?
The text was updated successfully, but these errors were encountered: