-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Better handling of raw bytes #346
Comments
/cc @bradfitz if he has an opinion about this. etags are the most prevalent use of this type, and I'd hope that most usage is pretty opaque: pseudocode:
|
There are analogies between this and the recent integer issue, in which we decided to keep |
@jadekler +1 Two options to improve this without making a breaking change:
(or combination/both) More generally, maybe we should collect these types of issues under a "v2" label? |
Given this field in a discovery doc:
This gets generated as:
The server accepts a base64-encoded string as the data, but we don't tell users that they need to encode it themselves.
Ideally, we'd just generate this as
[]byte
, which encoding/json actually encodes as a b64-encoded string.Is this a worthwhile breaking change?
If not, we should at least generate some docs/example on base64-encoding the package?
The text was updated successfully, but these errors were encountered: