Skip to content

fix: Add serialization for listTasks input/output parameters. - #610

Merged
bartek-gralewicz merged 1 commit into
mainfrom
bgralewicz/serialize_list_tasks_parameters
Jul 31, 2026
Merged

bartek-gralewicz merged 1 commit into
mainfrom
bgralewicz/serialize_list_tasks_parameters

Conversation

@bartek-gralewicz

@bartek-gralewicz bartek-gralewicz commented Jul 30, 2026 •

Copy link
Copy Markdown
Collaborator

Description

ProtoJSON omits default values while such are a required output for the listTasks method. This is present for both REST and JSON_RCP transports.

This PR fixes that by adding a list_tasks_serializer that makes sure that all fields are outputted, even if their values are default ones.

Fixes #609 🦕

@github-actions

Copy link
Copy Markdown

🧪 Code Coverage

⬇️ Download Full Report

Base PR Delta
src/server/express/rest_handler.ts 87.54% 87.78% 🟢 +0.24%
src/server/transports/jsonrpc/jsonrpc_transport_handler.ts 80% 83.58% 🟢 +3.58%
src/server/transports/rest/rest_transport_handler.ts 98.67% 98.69% 🟢 +0.02%
src/server/transports/list_tasks_serializer.ts (new) — 92.85% —
Total 90.9% 90.98% 🟢 +0.08%

Generated by coverage-comment.yml

@bartek-gralewicz bartek-gralewicz changed the title Add serialization for listTasks input/output parameters. fix: Add serialization for listTasks input/output parameters. Jul 30, 2026
@bartek-gralewicz
bartek-gralewicz marked this pull request as ready for review July 30, 2026 12:51
@bartek-gralewicz
bartek-gralewicz requested a review from a team as a code owner July 30, 2026 12:51

@JakubWorek JakubWorek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@bartek-gralewicz
bartek-gralewicz merged commit c863497 into main Jul 31, 2026
17 of 18 checks passed
@bartek-gralewicz
bartek-gralewicz deleted the bgralewicz/serialize_list_tasks_parameters branch July 31, 2026 08:08
bartek-gralewicz added a commit that referenced this pull request Aug 26, 2026
🤖 I have created a release *beep* *boop*
---


## [1.1.0](v1.0.1...v1.1.0)
(2026-08-26)


### Features

* make event bus keep-alive states configurable
([#669](#669))
([f844dad](f844dad)),
closes [#620](#620)


### Bug Fixes

* Add serialization for listTasks input/output parameters.
([#610](#610))
([c863497](c863497))
* clone push notification configs before storing
([#662](#662))
([4d175a0](4d175a0))
* **compat/v0_3/translate:** add null and undefined checks to array and
string fields ([#618](#618))
([108736b](108736b))
* **deps:** replace `uuid` package with `crypto.randomUUID()`
([#665](#665))
([636b060](636b060))
* Do not filter tasks in ListTasks if task state is unspecified
([#622](#622))
([1c6eb32](1c6eb32))
* **errors:** global error branding via Symbol.hasInstance to fix
instanceof checks across bundle entry points
([#612](#612))
([cc33173](cc33173))
* **scripts:** update generate script to use buf and remove obsolete
generateTypes ([#653](#653))
([8bf3cd3](8bf3cd3))
* **server:** send full Task on every v0.3 push trigger
([#658](#658))
([b3afbe4](b3afbe4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: bartek-gralewicz <[email protected]>
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.

ListTasks ProtoJSON serialization omits required empty pagination fields

2 participants