msgspec icon indicating copy to clipboard operation
msgspec copied to clipboard

Support setting `strict=False` on specific fields

Open TheMythologist opened this issue 1 year ago • 1 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.

TheMythologist avatar Apr 19 '24 08:04 TheMythologist

That would be a great feature!

soldni avatar Jun 07 '24 00:06 soldni