How to serialize a single value? #7771
Unanswered
domingues
asked this question in
Question & Answer
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an endpoint that returns a list of IDs and I want to produce the following schema:
To achieve this I created a simple
FieldSerializer
and modified
get_componetns
andget_responses
ofAutoSchema
to processBaseSerializers
instead of onlySerializers
.Don't know if this is the best approach... Comments are welcomed.
Beta Was this translation helpful? Give feedback.
All reactions