jcrist / msgspec

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
https://jcristharif.com/msgspec/
BSD 3-Clause "New" or "Revised" License
2.45k stars 76 forks source link

Check str constraints on dict keys in msgpack #577

Closed jcrist closed 1 year ago

jcrist commented 1 year ago

Previously the msgpack decoder would miss checking constraints on dict keys if those keys were short ascii strings. This fixes that and adds a test.

This issue was pointed out in #576.