Expand description
Validation layer for NAP structured merge.
Three stages:
Stage 1 — SDL validation Ensure the SDL document itself is valid:
- Valid merge strategy for each property
- Required fields exist
- Identity keys defined where required
- Property names don’t contain dots (V1 limitation)
Stage 2 — Manifest validation Ensure the manifest conforms to the SDL:
- Required fields are present
- Types match the schema
Stage 3 — Merge strategy validation Ensure merge strategies have all required metadata:
ordered_uniquehas identity ruleedge_listhas source_key, target_key, identity rule
All validation MUST complete before persistence.
Modules§
- manifest
- Manifest validation against SDL (Stage 2).
- merge
- Post-merge validation (Stage 3).
- sdl
- SDL document validation (Stage 1).
Structs§
- Validation
Error - A validation error.
Functions§
- check_
required_ paths - Check that all required paths exist in a value.
- check_
type_ match - Check that a value’s type matches the SDL property type.
- combine
- Combine multiple validation results.
- validate_
before_ persist - Run the full validation pipeline on a merge result.
Type Aliases§
- Validation
Result - Result type for validation operations.