marshmallow-code/marshmallow

Allow specifying output field when using `unknown=INCLUDE`

Open

#853 geöffnet am 23. Juni 2018

Auf GitHub ansehen
 (3 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)Python (640 Forks)batch import
feedback welcomehelp wanted

Repository-Metriken

Stars
 (6.787 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4h 13m) (6 gemergte PRs in 30 T)

Beschreibung

From https://github.com/marshmallow-code/marshmallow/issues/524#issuecomment-393057138

We could even go further and let the user set a default Field when using INCLUDE, but I'm not sure it is so useful, and it is never too late to add it in a later step.

(edited to make the argument name correct)

I suggested here that a field could be passed to unknown, e.g. unknown=fields.Str().

Contributor Guide