Skip to main content

Crate norm_spec

Crate norm_spec 

Source
Expand description

High-level, filesystem-aware Rust API for the .norm format.

The facade owns explicit filesystem orchestration and packaged release assets. Format parsing and validation semantics remain implemented once in norm_spec_core.

Structs§

ApiError
A handled high-level API failure with stable machine-readable detail.
CollectRequest
Explicit inputs for one inherited convention collection.
CollectResponse
Successful collect machine response.
CollectedNorm
One parsed convention file in a collect response.
Diagnostic
Stable diagnostic emitted by schema, profile, or semantic validation.
ErrorDetail
Stable machine-readable error detail.
ParsedNorm
A parsed .norm document before it is wrapped in a machine response.
SchemaLoadError
Failure to load or parse a packaged or explicit Schema bundle.
ValidateRequest
Explicit inputs for one filesystem-aware validation operation.
ValidateResponse
Versioned machine response for a completed validate evaluation.
ValidationResult
Validation outcome for one root-relative .norm path.
ValidationSummary
Aggregate counts for a validation response.

Enums§

FailureClass
Stable caller-facing classification for a high-level API failure.
ValidationStatus
Overall classification of one validated .norm file.

Constants§

PROFILE_NAMES
Names of the release-owned Schema profiles and authoring templates.

Functions§

collect
Collect inherited .norm files from most-specific target to project root.
embedded_schema_bundle
Load the release-owned Schema bundle embedded in this package.
profile_template
Return one packaged authoring template by profile name.
schema_bundle_from_dir
Load a root Schema and profile Schemas from an explicit directory.
validate
Validate one explicit input or every convention below an explicit root.