Skip to main content

Module validate

Module validate 

Source
Expand description

Semantic validation for GRC-20 edits.

This module provides validation beyond structural encoding checks. Structural validation happens during decode; semantic validation requires additional context (schema, entity state).

Note: With the per-edit typing model, type enforcement is advisory. The protocol does not enforce that a property always uses the same type across edits. Applications can use SchemaContext to opt-in to type checking.

Structs§

SchemaContext
Schema context for semantic validation.

Functions§

validate_edit
Validates an edit against a schema context.
validate_position
Validates a position string according to spec rules.
validate_value
Validates a single value (independent of property context).