Skip to content

fix: align card response and member role contracts - #32

Merged
2chevskii merged 2 commits into
masterfrom
fix/card-response-contracts
Oct 4, 2026
Merged

2chevskii merged 2 commits into
masterfrom
fix/card-response-contracts

Conversation

@2chevskii

Copy link
Copy Markdown
Owner

Card updates declared tags as a scalar even though Kaiten returns tag objects, preventing consumers from typing the response consistently with card reads. Correct CardsUpdateCardResponse.tags to an optional CardTagSummary[]. Restrict the member-role request and positional method argument to the only supported value, 2 (responsible).

English and Russian REST guides explain the corrected contracts. Include package/lockfile version 1.0.3 for the requested patch release. Consumers that passed unsupported role values now receive a TypeScript error.

Validation: build, lint, formatting and bilingual documentation build passed. A TypeScript proof accepts tag arrays and role 2 while rejecting scalar tags and unsupported roles at both body and method boundaries. Primary schemas: https://developers.kaiten.ru/cards/update-card and https://developers.kaiten.ru/card-members/update-member-role.

@2chevskii
2chevskii merged commit c84a0c0 into master Oct 4, 2026
5 checks passed
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.

1 participant