Skip to content

feat: add json_name support to compliance suite#1629

Open
diegomarquezp wants to merge 6 commits into
googleapis:mainfrom
diegomarquezp:feat-json-name-compliance
Open

feat: add json_name support to compliance suite#1629
diegomarquezp wants to merge 6 commits into
googleapis:mainfrom
diegomarquezp:feat-json-name-compliance

Conversation

@diegomarquezp
Copy link
Copy Markdown

@diegomarquezp diegomarquezp commented May 1, 2026

This PR adds cases for the json_name field annotation to the compliance transcoding suite, referencing AIP-127.

@diegomarquezp diegomarquezp requested review from a team as code owners May 1, 2026 18:27
@diegomarquezp diegomarquezp marked this pull request as draft May 1, 2026 18:28
@diegomarquezp diegomarquezp force-pushed the feat-json-name-compliance branch from 28df8d3 to d71566c Compare May 1, 2026 18:33
@diegomarquezp diegomarquezp reopened this May 4, 2026
@diegomarquezp diegomarquezp marked this pull request as ready for review May 4, 2026 15:18
LifeKingdom f_kingdom = 22;

ComplianceDataChild f_child = 16;
string custom_path_field = 24 [json_name = "customPath"];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this intended to be used for path parameters? If yes, I think it needs to be configured in the RPC's http annotation?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, the demo PR shows this would be respected googleapis/google-cloud-java#12980

// versions:
// protoc-gen-go v1.33.0
// protoc v3.20.3
// protoc v7.34.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this protoc version in the gen code intended? cc: @noahdietz who might be more familiar with the gapic-showcase setup.

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.

3 participants