Skip to content

chore: move the JS validator to OO-LD/oold-js - #156

Merged
simontaurus merged 1 commit into
mainfrom
chore/extract-js-validator
Aug 30, 2026
Merged

chore: move the JS validator to OO-LD/oold-js#156
simontaurus merged 1 commit into
mainfrom
chore/extract-js-validator

Conversation

@simontaurus

Copy link
Copy Markdown
Contributor

Closes #91. Pairs with OO-LD/oold-python#144, which repoints the parity suite at the new home.

The three validator files are now OO-LD/oold-js, extracted unchanged and tagged v0.1.0. Verified behaviour-preserving: run over this repository's examples/ it reports 150/150 checks passed, 1 warning, byte-identical to make validate-reference before the move.

The one change the move required is where the meta-schemas come from. They were read relative to the script's own location, which does not survive leaving this repository, so oold-js takes --meta <dir> instead. It vendors no meta-schemas: they are owned here and versioned with the specification, so pinning them is the caller's decision.

Removed

  • scripts/validate.mjs, scripts/schema_to_frame.mjs, scripts/pattern_lint.mjs
  • make install and make validate-reference
  • package.json's bin, dependencies and validate script, leaving only extract-legacy, which the migration docs link to and which imports nothing outside Node's standard library

This repository now has no Node dependencies at all.

Docs

docs/tooling.md advertised npx --yes github:OO-LD/oold-schema oold-validate <dir> as the way to check your own schemas. That bin is gone; the equivalent is now uvx --from "oold[validation]" oold validate <dir>, which is the maintained implementation and the one this repository's own CI runs. README.md and docs/introduction.md no longer tell a reader to npm install.

Verification

make validate: examples 380 ok / 0 failed, examples/compliance 72 ok / 0 failed across 54 targets. make check exit 0, 80 rules, no drift.

The specification repository no longer carries an implementation: the
corpus and the code that checks it are versioned separately, and the
Node dependency goes with it.

- scripts/{validate,schema_to_frame,pattern_lint}.mjs removed
- Makefile install and validate-reference targets dropped
- package.json keeps only the legacy-keyword extractor, which uses
  nothing outside Node's standard library

Closes #91
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.

Bundle the validation scripts as a reusable package (and/or fold into oold-python)

1 participant