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
It would be nice to specify fields which msgspec should not include when serializing, such as private fields/caches in python or passwords. Pydantic lets you specify this using exclude.
The text was updated successfully, but these errors were encountered:
saolof
changed the title
Add ways to specify fields which should not be serialized
Add a to specify fields which should not be serialized
May 16, 2023
Would #199 satisfy your needs? This wouldn't allow for dynamically deciding what fields are serialized/deserialized (as pydantic's exclude allows), but would allow statically omitting certain fields from the message structure.
Description
It would be nice to specify fields which msgspec should not include when serializing, such as private fields/caches in python or passwords. Pydantic lets you specify this using exclude.
The text was updated successfully, but these errors were encountered: