Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

sync: Fix serial_num field name #1404

Merged
merged 1 commit into from
Jul 29, 2024
Merged

sync: Fix serial_num field name #1404

merged 1 commit into from
Jul 29, 2024

Conversation

russellhancox
Copy link
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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