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

sync: Fix serial_num field name #1404

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

russellhancox
Copy link
Collaborator

Disable the preserve_proto_field_names option when marshalling JSON requests as this prevents the json_name attribute on fields from working properly. Add that attribute to all fields so that they marshal as expected. Stop setting the always_print_enums_as_ints option as the value we're setting to is the default anyway.

Also add a test that preflight request data looks as expected.

@russellhancox russellhancox added the sync service Issues related to the sync service / protocol label Jul 29, 2024
@russellhancox russellhancox added this to the 2024.7 milestone Jul 29, 2024
@russellhancox russellhancox requested a review from a team as a code owner July 29, 2024 15:14
Disable the preserve_proto_field_names option when marshalling JSON requests as this prevents the json_name attribute on fields from working properly. Add that attribute to all fields so that they marshal as expected. Stop setting the always_print_enums_as_ints field as the value we're setting to is the default anyway.

Also add a test that preflight request data looks as expected.
@russellhancox russellhancox merged commit 9a7dcef into google:main Jul 29, 2024
10 checks passed
@russellhancox russellhancox deleted the sync-preflight-field-names branch July 29, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sync service Issues related to the sync service / protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants