marshmallow-code/marshmallow
Allow specifying output field when using `unknown=INCLUDE`
开放
#853 创建于 2018年6月23日
feedback welcomehelp wanted
仓库指标
- 星标
- (6,787 个星标)
- PR 合并指标
- (平均合并 10小时 55分钟) (30 天内合并 7 个 PR)
描述
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().