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 support for type 'bytes' #25

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Add support for type 'bytes' #25

merged 2 commits into from
Mar 19, 2024

Conversation

colinbendell
Copy link
Contributor

This adds support for bytes which are a variation of string. Technically it should be coerced into an ASCII_8BIT string instead of a UTF8 string

@maximecb
Copy link
Contributor

Thanks for the PR @colinbendell

I think it is missing a call to force_encoding to make the encoding ASCII_8BIT. It would also be good to add some tests. See ./test/fixtures/test.proto.

@maximecb maximecb added the enhancement New feature or request label Mar 18, 2024
@colinbendell colinbendell requested a review from maximecb March 18, 2024 21:23
@maximecb maximecb merged commit e2c7b15 into main Mar 19, 2024
4 checks passed
@maximecb maximecb deleted the cb_add_bytes_type branch March 19, 2024 17:58
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

Successfully merging this pull request may close these issues.

2 participants