Custom serializer for field in an OutSchema #246
Unanswered
twentyforty
asked this question in
Q&A
Replies: 1 comment
-
That functionality is primarily handled by Pydantic. What you are after might be handled here: https://pydantic-docs.helpmanual.io/usage/exporting_models/#json_encoders |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using GeoDjango and I have a serializer that I would like to use that produces standards-based GeoJson. I would like to use the django-ninja serialization for all fields except one where I provide my own serializer. I'd like to avoid writing custom serialization code if possible.
I have models similar to:
I would like to provide a Schema like this:
Is something like this currently possible? If not, is there any plan to provide custom serialization for specific fields?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions