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

Spec out restricted profiles #277

Open
traverseda opened this issue Dec 25, 2019 · 0 comments
Open

Spec out restricted profiles #277

traverseda opened this issue Dec 25, 2019 · 0 comments

Comments

@traverseda
Copy link

Right now the restricted profiles section of the spec is quite vague, and covers a lot of potential use cases. It's mentioned under "future discussions", well let's get that discussion started!

I believe that the only real way to implement such a broad goal would be to allow msgpack libraries to defer encoding/decoding of built-in msgpack objects to a user-supplied function, similar to how external types are handled now.

In my particular use-case I need msgpack to only encode immutable python types. That means I need to handle "map" types myself.

It might be simplest to have end users able to customize the mapping between language-types and msgpack types, overriding the libraries assumptions about type-coercion.

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