Skip to content

fix(site): pin playground validator to 0.1.1 (schema v1.3.0 side/arc) - #42

Merged
OliEder merged 1 commit into
mainfrom
fix/playground-validator-0.1.1
Aug 28, 2026
Merged

OliEder merged 1 commit into
mainfrom
fix/playground-validator-0.1.1

Conversation

@OliEder

@OliEder OliEder commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Fixes the live playground rejecting every play that uses the new side/arc fields (RFC 0004).

Cause

site/src/lib/validator-version.mjs pinned @opencoachingformat/validator@0.1.0, whose bundled schema predates v1.3.0. The playground loads that exact bundle from jsDelivr, so side/arc hit additionalProperties: false and errored — even though the canonical /schema/v1.json was already on 1.3.0.

Fix

  • OCF_VALIDATOR_VERSION 0.1.0 → 0.1.1 (just published; vendored schema v1.3.0, verified to accept a side/arc doc).
  • OCF_VALIDATOR_COMMIT re-pinned to the matching validator main commit 45a1186 for the build-time error-codes.json fetch (16 codes, unchanged).

Verified

  • npm run test:renderer-playground → 38/38 pass.
  • npm run build → all pages build; the fetched error-codes.json from the new commit resolves.
  • Built dist/playground/index.html now references @0.1.1/dist/browser/browser.js.

Note: this is the interim exact pin. A follow-up will (per decision) switch the playground to track the latest validator and add schema-version selection + an update check, backed by a versions.json manifest — and make the spec release auto-republish the validator as a patch so this manual chase isn't needed.

🤖 Generated with Claude Code

…/arc)

The playground loaded @opencoachingformat/validator@0.1.0, whose bundled
schema predates RFC 0004 — so plays using the new side/arc fields were
rejected via additionalProperties. Bump to the freshly published 0.1.1
(vendored schema v1.3.0) and re-pin OCF_VALIDATOR_COMMIT to the matching
main commit for the error-codes.json fetch.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@OliEder
OliEder merged commit 5632582 into main Aug 28, 2026
1 check passed
@OliEder
OliEder deleted the fix/playground-validator-0.1.1 branch August 28, 2026 06:48
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