pub fn with_resolved_schema_reference<F>( definitions: &mut BTreeMap<String, Schema>, schema: &mut SchemaObject, f: F, )where F: FnOnce(&mut BTreeMap<String, Schema>, &str, &mut Schema),