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