pub fn resolve_schema_ref(&self, doc_file: impl AsRef<Utf8Path>, reference: &Reference) -> Result<ResolvedSchema> {
        let ref_key = self.ref_key(doc_file, reference)?;
        let schema = self
            .schemas
            .get(&ref_key)
            .ok_or_else(|| Error::with_message(ErrorKind::Parse, || format!("parameter not found {ref_key:?}")))?
            .clone();
        Ok(ResolvedSchema {
            ref_key: Some(ref_key),
            schema,
        })
    }
/// Find the schema for a given doc path and reference
Find the schema for a given doc path and reference
Find the schema for a given doc path and reference
pub fn resolve_schema_ref(&self, doc_file: impl AsRef<Utf8Path>, reference: &Reference) -> Result<ResolvedSchema> {
        let ref_key = self.ref_key(doc_file, reference)?;
        let schema = self
            .schemas
            .get(&ref_key)
            .ok_or_else(|| Error::with_message(ErrorKind::Parse, || format!("parameter not found {ref_key:?}")))?
            .clone();
        Ok(ResolvedSchema {
            ref_key: Some(ref_key),
            schema,
        })
    }
pub fn resolve_schema_ref ( & self , doc_file : impl AsRef < Utf8Path > , reference : & Reference ) -> Result < ResolvedSchema > { let ref_key = self . ref_key ( doc_file , reference ) ? ; let schema = self . schemas . get ( & ref_key ) . ok_or_else ( | | Error :: with_message ( ErrorKind :: Parse , | | format ! ( " " ) ) ) ? . clone ( ) ; Ok ( ResolvedSchema { ref_key : Some ( ref_key ) , schema , } ) }
Find the schema for a given doc path and reference
Find the schema for a given doc path and reference
&self
doc_file
impl AsRef<Utf8Path>
reference
&Reference