Expand description
Validator module: Validate specs against JSON Schema and perform semantic checks
Two-stage validation:
- JSON Schema validation (using embedded unit.spec.json)
- Semantic validation (Rust keywords, deps, etc.)
Structs§
Functions§
- check_
spec_ versions - Emit a warning for each spec that lacks a spec_version field.
- detect_
cycles - Detect cycles in the dependency graph using depth-first search.
- validate_
deps_ exist - Validate that all internal deps referenced by loaded specs exist in the same spec set.
- validate_
deps_ exist_ with_ options - validate_
full - Full validation (schema + semantic)
- validate_
full_ with_ options - Full validation (schema + semantic) with explicit options.
- validate_
no_ duplicate_ ids - Check for duplicate IDs across all loaded specs.
- validate_
raw_ yaml - Validate a raw YAML-authored value against the JSON Schema before deserialization.
- validate_
rust_ keywords - Check if any segment of an ID is a Rust reserved keyword
- validate_
schema - Validate a single spec against the JSON Schema
- validate_
semantic - Perform semantic validation (Rust keywords, deps, etc.)
- validate_
semantic_ with_ options - Perform semantic validation with explicit options.