PureYAML/scripts
Mihaela M 2e45ecaffe feat(validation): add type-directed Check dispatch
Introduce the core of the validation-rules idiom: a Check<Subject> with a
positive description, a when predicate, and a Bool or multi-error check
that fires only on values of its Subject type wherever they occur. AnyCheck
erases the subject and dispatches by runtime type, guarding an optional or
a wrong type from matching. The validator gains a checks list, a
validating(_:) overload, and a traversal that offers each node the values
it may specialise on. BuiltinCheck.mappingKeysAreUnique is the
type-directed counterpart of the legacy rule.

The machinery has its own negative tests (wrong type, optional, false
predicate yield nothing; same type twice yields two errors) and the builtin
ships a failing and a near-miss test. The coverage gate catches the five
new public types, which are classified as validation machinery. The default
validator is unchanged, so this is additive; retiring the legacy Rule,
moving the default onto the check, the combinator algebra, the error
rendering, and de-duplicating the Tagged validator are the remaining steps.
2026-06-28 07:23:23 +02:00
..
check-all.sh build: enforce validation coverage over every public type 2026-06-28 05:00:54 +02:00
check-changelog-touched.sh ci(gates): add full local verification script 2026-06-05 10:24:04 +02:00
check-corpus.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-forbidden-patterns.sh Harden parser against real YAML fixtures 2026-06-05 19:34:30 +02:00
check-json-compatibility.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-linux.sh ci: run optimized build gates 2026-06-05 22:36:28 +02:00
check-namespacing.sh refactor(code-style): one top-level type per source file 2026-06-26 06:14:21 +02:00
check-performance-phases.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-roadmap.sh docs(roadmap): collapse completed epic diagrams 2026-06-05 10:50:13 +02:00
check-style.sh chore(rules): vendor the rules-swift canon into docs/rules-swift 2026-06-26 05:36:12 +02:00
check-throughput.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-validation-coverage.sh build: enforce validation coverage over every public type 2026-06-28 05:00:54 +02:00
check-wasm.sh ci: run optimized build gates 2026-06-05 22:36:28 +02:00
check-windows.ps1 ci: run optimized build gates 2026-06-05 22:36:28 +02:00
check-yams-diagnostics.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-yams-differential.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-yams-validation.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
fetch-yaml-test-suite.sh test: measure conformance against the official YAML test-suite 2026-06-26 17:43:19 +02:00
validation-coverage.tsv feat(validation): add type-directed Check dispatch 2026-06-28 07:23:23 +02:00