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

Add JsonFormat.Shape.BINARY #159

Closed
cowtowncoder opened this issue Sep 10, 2019 · 0 comments
Closed

Add JsonFormat.Shape.BINARY #159

cowtowncoder opened this issue Sep 10, 2019 · 0 comments

Comments

@cowtowncoder
Copy link
Member

Looks like "binary" representation is not available, yet. Although one can use NATURAL in many cases (like, say, byte[]), there are cases where one might want to use binary representation even if it was not the default. For example, when serializing java.util.UUID as JSON, natural representation is Shape.STRING, but one could conceivably want to use "binary", which in case of JSON would mean Base64 encoding.
But more importantly, it may be important to distinguish shape representations for formats that do have native binary values: it is likely that Avro and Protobuf formats would need such a Shape descriptor for customizations.

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