pub fn parse(file_name: &str, source: &str) -> Result<Schema, Box<SchemaErrors>>Expand description
Parses and validates a schema.
file_name is used only to label diagnostics; nothing is read from disk.
§Errors
Returns every problem found in one bundle — syntax errors, unresolved types,
and broken validation rules alike — with the source attached so each can
render its own span. Warnings (V17, and the dialect notes added in P2) never
fail: they are returned to the caller through parse_with_warnings.