fix: properly parse ProtoJSON body for POST pushNotificationConfigs#352
fix: properly parse ProtoJSON body for POST pushNotificationConfigs#352
Conversation
🧪 Code Coverage
Generated by coverage-comment.yml |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a regression in the API's ability to correctly parse ProtoJSON request bodies for push notification configurations. The fix ensures that incoming requests to the setTaskPushNotificationConfig endpoint are properly deserialized, restoring expected functionality. Additionally, comprehensive test cases have been added to prevent similar issues in the future and validate correct handling of various ProtoJSON formats. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
f3d7188 to
5c0a1a8
Compare
There was a problem hiding this comment.
Code Review
This pull request addresses a bug in the POST /v1/tasks/:taskId/pushNotificationConfigs endpoint where the request body was not being parsed correctly as ProtoJSON. The fix correctly implements fromJSON to parse the request body, ensuring proper handling of both camelCase and snake_case fields. The tests have been significantly improved to validate this fix and align with the expected ProtoJSON structures, increasing test coverage and robustness. The changes are well-implemented and effectively resolve the issue.
5c0a1a8 to
d01ab3a
Compare
d01ab3a to
8937790
Compare
🤖 I have created a release *beep* *boop* --- ## [0.3.13](v0.3.12...v0.3.13) (2026-03-16) ### Bug Fixes * properly parse ProtoJSON body for POST pushNotificationConfigs ([#352](#352)) ([57696a8](57696a8)), closes [#336](#336) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…2aproject#352) Apparently the code removed in a2aproject#346 wasn't "dead", this method wasn't properly migrated in a2aproject#292. Tests are updated to cover this. Fixes a2aproject#336
🤖 I have created a release *beep* *boop* --- ## [0.3.13](a2aproject/a2a-js@v0.3.12...v0.3.13) (2026-03-16) ### Bug Fixes * properly parse ProtoJSON body for POST pushNotificationConfigs ([a2aproject#352](a2aproject#352)) ([57696a8](a2aproject@57696a8)), closes [a2aproject#336](a2aproject#336) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Apparently the code removed in #346 wasn't "dead", this method wasn't properly migrated in #292.
Tests are updated to cover this.
Fixes #336