You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
msgspec.Raw appears not to work with msgspec.yaml.decode #1136
I couldn't find any note in documentation suggesting msgspec.Raw cannot be used with YAML for decoding, so i assumed it is supported, but i get ValidationError. Is this expected behavior?
This is expected with the current architecture: msgspec.Raw needs access to original serialized bytes, which only the native json and msgpack C decoders provide. yaml.decode parses fully via PyYAML before validation, so byte spans are lost.
Activity
Brohammad commentedon Sep 2, 2026
This is expected with the current architecture:
msgspec.Rawneeds access to original serialized bytes, which only the nativejsonandmsgpackC decoders provide.yaml.decodeparses fully via PyYAML before validation, so byte spans are lost.Opened #1168 with:
Expected \any`, got `int``Brohammad commentedon Sep 2, 2026
Correction: PR is #1170 (not #1168).
fix: correct misleading "Expected any" error for Raw fields in conver…