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

Disable utf-8 validation on strings #147

Merged
merged 3 commits into from
Mar 1, 2024
Merged

Disable utf-8 validation on strings #147

merged 3 commits into from
Mar 1, 2024

Conversation

dnr
Copy link
Member

@dnr dnr commented Mar 1, 2024

What changed?
Disable utf8 validation on all string fields.

Why?
We migrated from gogoproto to the official Go proto compiler and runtime library. Gogo did not enforce valid utf8 in string fields. To ease the transition, we need the official proto library to relax enforcement of utf8 until we can verify it won't break things.

How did you test it?
Tested manually with invalid utf8 data.

Potential risks

@dnr dnr requested review from a team as code owners March 1, 2024 01:24
@dnr dnr merged commit b8be610 into master Mar 1, 2024
4 checks passed
@dnr dnr deleted the david/utf8 branch March 1, 2024 02:00
tdeebswihart pushed a commit that referenced this pull request Mar 1, 2024
**What changed?**
Fix #147 for nested types

**Why?**
See #147 

**How did you test it?**
Also added unit test
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

Successfully merging this pull request may close these issues.

2 participants