Skip to content

Fix WCIF v2.2 save payloads - #91

Merged
coder13 merged 1 commit into
mainfrom
codex/fix-wcif-v22-required-fields
Oct 9, 2026
Merged

coder13 merged 1 commit into
mainfrom
codex/fix-wcif-v22-required-fields

Conversation

@coder13

@coder13 coder13 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • always include the competition ID in WCIF PATCH payloads
  • preserve the WCIF format version returned by the WCA website when building partial saves
  • require formatVersion in the patch helper's TypeScript contract
  • add regression coverage for the WCIF v2.2 required fields

Context

The WCA website's October 7 update made ID and formatVersion required for WCIF v2.2 payloads: thewca/worldcubeassociation.org#15907

Delegate Dashboard already included formatVersion in its partial PATCH, but omitted ID. The API consequently rejected every v2.2 save with: The property '#/' did not contain a required property of 'id'.

Verification

  • yarn lint (passes with 20 existing warnings)
  • yarn test (396 tests pass)
  • yarn build

@coder13
coder13 merged commit 972487d into main Oct 9, 2026
7 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