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

Auto-key-trans #87

Open
thorwhalen opened this issue Apr 7, 2021 · 0 comments
Open

Auto-key-trans #87

thorwhalen opened this issue Apr 7, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@thorwhalen
Copy link
Member

Serializers (data_of_obj) and deserializers(obj_of_data) don't have to be aligned in many contexts.

But most of the time, mapping operations will get in trouble if key transformers are not aligned.

I propose to develop a few tools that will mitigate this problem:

  • validation functions that can be run to diagnose alignment
  • key_transformers that have some memory (cache_keys) so that, given one direction, the other can by "computed" simply by keeping a ledger of key->_id or/and _id->key and applying the map when asked to "compute" a key transformation.
@thorwhalen thorwhalen added the enhancement New feature or request label Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant