Skip to main content

parse_with_warnings

Function parse_with_warnings 

Source
pub fn parse_with_warnings(
    file_name: &str,
    source: &str,
) -> Result<(Schema, Vec<SchemaError>), Box<SchemaErrors>>
Expand description

Like parse, but also returns the advisory diagnostics.

The CLI prints these on the success path; tests assert on them.

ยงErrors

As parse.