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

fix: handle type:object with format:google.protobuf.Any #138

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

vchudnov-g
Copy link
Collaborator

@vchudnov-g vchudnov-g commented Dec 12, 2024

We were not handling the Discovery equivalent of proto repeated Any, which shows up in Discovery docs as an array of object with format:google.protobuf.Any. This fixes that, and adds a test.

Note that because we only allow google.protobuf.Any when it's nested inside ....error.details, the test case for this has more structure than other test cases for the format field.

@vchudnov-g vchudnov-g marked this pull request as ready for review December 13, 2024 01:48
@vchudnov-g vchudnov-g requested review from a team as code owners December 13, 2024 01:48
@vchudnov-g vchudnov-g changed the title fix: handle type:object with format:google.protobufAny fix: handle type:object with format:google.protobuf.Any Dec 13, 2024
Copy link

@parthea parthea left a comment

Choose a reason for hiding this comment

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

LGTM but please add a PR description prior to merging

@vchudnov-g
Copy link
Collaborator Author

Added a PR description. Merging.

@vchudnov-g vchudnov-g merged commit 285877d into main Dec 13, 2024
3 checks passed
@vchudnov-g vchudnov-g deleted the gce-alpha-script branch December 13, 2024 16:28
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