marshmallow-code/marshmallow

Allow specifying output field when using `unknown=INCLUDE`

オープン

#853 opened on 2018/06/23

 (3 件のコメント) (4 件のリアクション) (0 人の担当者)Python (640 件のフォーク)batch import
feedback welcomehelp wanted

Repository metrics

Stars
 (6,787 個のスター)
PR merge metrics
 (平均マージ 10h 55m) (30d で 7 merged PRs)

説明

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().

コントリビューターガイド