pub fn load_schema(source: &str) -> LoadSchemaResultExpand description
Loads an Outlint schema from UTF-8 source text.
The returned model contains only normalized values. Errors are accumulated where later checks do not depend on an earlier invalid value.
ยงExample
use outlint_core::{load_schema, Matcher};
let loaded = load_schema(
r#"
version: 1
title: null
sections:
- match: Overview
"#,
)?;
assert!(matches!(
loaded.schema.outline[0].sections[0].matcher,
Matcher::Exact(_)
));