MCPcopy Create free account
hub / github.com/cedar-policy/cedar-java / parse

Method parse

CedarJavaFFI/src/helpers.rs:69–74  ·  view source on GitHub ↗

Parse a [`Schema`] into a [`crate::Schema`]

(
        self,
    )

Source from the content-addressed store, hash-verified

67impl FFISchema {
68 /// Parse a [`Schema`] into a [`crate::Schema`]
69 pub(super) fn parse(
70 self,
71 ) -> Result<(Schema, Box<dyn Iterator<Item = SchemaWarning>>), miette::Report> {
72 let (schema_frag, warnings) = self.parse_schema_fragment()?;
73 Ok((schema_frag.try_into()?, warnings))
74 }
75
76 /// Return a [`crate::SchemaFragment`], which can be printed with `.to_string()`
77 /// and converted to JSON with `.to_json()`.

Callers 1

get_componentsMethod · 0.45

Calls 1

parse_schema_fragmentMethod · 0.80

Tested by

no test coverage detected