Skip to content

About

Reference validator for the Open Coaching Format — schema + semantic checks (ball possession, branch integrity, references)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

80 Commits

Folders and files

Repository files navigation

OCF Validator

Reference validator for the Open Coaching Format. Checks an OCF document against the JSON Schema and the semantic rules the schema cannot express (ball-possession consistency, branch-target integrity, reference integrity), serving both authoring tools (LLM / editor) and the rendering gate.

  • packages/ts — TypeScript library + ocf-validate CLI (reference impl).
  • packages/py — Python mirror (same conformance suite).
  • shared/ — language-neutral contract: model schema, error-code registry, named-position catalog, conformance fixtures.

Quick start (TypeScript)

npm install @opencoachingformat/validator
npx ocf-validate path/to/play.ocf.json
import { validate } from "@opencoachingformat/validator";
const result = validate(doc);
if (!result.valid) console.error(result.errors);

Building from source instead (this repo, not the published package):

cd packages/ts && npm install && npm run build
node dist/cli.js path/to/play.ocf.json

See the design doc for the full rule set and result format.

About

Reference validator for the Open Coaching Format — schema + semantic checks (ball possession, branch integrity, references)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages