Skip to main content

validate_schema

Function validate_schema 

Source
pub fn validate_schema(schema: &Schema) -> Vec<ValidationError>
Expand description

Run the full positioned semantic validation of a parsed schema and return every diagnostic (naming + structural). Does not fail fast.

This is the entry point for the CLI and the LSP. The parser runs the same checks internally (see collect_naming_errors / collect_structure_errors) but reports only the first, to keep its Result<Schema, String> contract.