jcrist / msgspec

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML

Home Page:https://jcristharif.com/msgspec/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support setting `strict=False` on specific fields

TheMythologist opened this issue · comments

Description

Instead of globally setting strict=False on the decoder function/class, allow setting strict=False for specific fields. This way, we can get the non-strict conversions on some fields, and get strict conversions on the other fields.