You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think you can do that with marshmallow. I'm pretty sure there was once a discussion about it, maybe involving sort of merging Schema and Field. I can't find it.
You could probably use a pre_load to wrap the payload into a dict with a single key and using that key as name for the List field in the schema, but this sucks, of course.
How can one create Schema derived class from a list only data?
For input with a field value, i.e. dictionary, e.g.:
one can use;
But how can one so it when input is just a list:
?
NB: both are valid JSONs
The text was updated successfully, but these errors were encountered: