release: v2.1.6#49
Merged
Merged
Conversation
boards.getBoardCards / lists.getListCards threw a ZodError on real boards because two response schemas had drifted from the Trello API: - Card.dueReminder was typed as a string, but the API returns a number (minutes before the due date) — aligned with CheckItem.dueReminder. - ColorSchema only accepted the 10 documented base colors, but the API also returns the `_light` / `_dark` shade variants introduced in the May 2023 label redesign (30 values total). Adds regression coverage pinning both schemas and fixes the maximal-payload breadth fixture that encoded the old dueReminder string shape. Closes #48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Releases v2.1.6 — a schema-drift bugfix for
boards.getBoardCards()/lists.getListCards(), which threw aZodErroron real boards even though the request succeeded. Fixes #48.Fixed
Card.dueReminderSchema declared
z.string(), but the API returns a number (minutes before the due date). Aligned with the already-correctCheckItem.dueReminder:labels[].color(ColorSchema)The enum only accepted the 10 documented base colors. The API also returns the undocumented
_light/_darkshade variants introduced in the May 2023 label redesign — 30 values total. Extended the enum to the full palette (still.nullable()).Tests
tests/unit/models/card.test.tspinning both schemas (number/null/string fordueReminder; acceptssky_dark/green_light, rejects an unknown color).breadth.test.tsthat encoded the olddueReminderstring shape.tsc --noEmitclean · full unit suite green (171 passed).Release
package.json→2.1.6CHANGELOG.md→ v2.1.6 sectionNo
skipParsingneeded after this — the response validates cleanly. Thanks to @sampgoes97-ux for the detailed report.