Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow modification of data on [de]serialization #33

Open
altendky opened this issue Jan 6, 2020 · 1 comment
Open

Allow modification of data on [de]serialization #33

altendky opened this issue Jan 6, 2020 · 1 comment

Comments

@altendky
Copy link
Contributor

altendky commented Jan 6, 2020

I was trying to implement a polyfield which turned {'a': 42} into {'a': {'type': 'int', 'value': 42} to make for extremely explicit type specification. This involves specifying a schema as already supported but also modifying the data both for serialization and deserialization.

The topic that lead me to work on this was exploring supporting more explicit specification for typing.Union in https://github.com/python-desert/desert.

@altendky
Copy link
Contributor Author

altendky commented Jan 6, 2020

Or maybe rather than supporting modification (along with supporting modification?) polyfield should configurably directly support explicit type naming? in the serialized data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant