cedar_policy_validator::cedar_schema::parser

Function parse_cedar_schema_fragment

Source
pub fn parse_cedar_schema_fragment<'a>(
    src: &str,
    extensions: &Extensions<'a>,
) -> Result<(Fragment<RawName>, impl Iterator<Item = SchemaWarning> + 'a), CedarSchemaParseErrors>
Expand description

Parse a schema fragment, in the Cedar syntax, into a json_schema::Fragment, possibly generating warnings