Skip to content

impl(wkt): helper type for i32 deserialization #2334

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

Merged
merged 5 commits into from
May 31, 2025

Conversation

coryan
Copy link
Collaborator

@coryan coryan commented May 30, 2025

ProtoJSON requires accepting both strings and integers for integers. This PR
only adds support for signed 32-bit integers. Future PRs will deal with
unsigned integers and with 64-bit integers.

The changes to the generator and the generated code will also happen in
separate PRs.

Fixes #2323

ProtoJSON requires accepting both strings and integers for integers. This PR
only adds support for signed 32-bit integers. Future PRs will deal with
unsigned integers and with 64-bit integers.

The changes to the generator and the generated code will also happen in
separate PRs.
Copy link

codecov bot commented May 30, 2025

Codecov Report

Attention: Patch coverage is 88.46154% with 3 lines in your changes missing coverage. Please review.

Project coverage is 93.79%. Comparing base (a86b619) to head (9068aad).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/wkt/src/internal/int32.rs 88.46% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2334      +/-   ##
==========================================
- Coverage   93.92%   93.79%   -0.13%     
==========================================
  Files          64       66       +2     
  Lines        2781     2838      +57     
==========================================
+ Hits         2612     2662      +50     
- Misses        169      176       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coryan coryan marked this pull request as ready for review May 30, 2025 18:28
@coryan coryan requested a review from a team as a code owner May 30, 2025 18:28
@coryan coryan marked this pull request as draft May 30, 2025 19:56
@coryan coryan marked this pull request as ready for review May 30, 2025 22:18
amanda-tarafa
amanda-tarafa previously approved these changes May 30, 2025
dbolduc
dbolduc previously approved these changes May 30, 2025
Copy link
Collaborator Author

@coryan coryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL

@coryan coryan merged commit 441aa4c into googleapis:main May 31, 2025
21 checks passed
@coryan coryan deleted the feat-wkt-support-custom-i32-encoding branch May 31, 2025 03:01
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.

Accept both strings and integers for int32, fixed32 and uint32 fields
3 participants