( doc_path: &DocumentPath, original_cache: &mut OriginalDocumentsHash, resolved_cache: &mut ResolvedDocumentsHash, )
| 53 | fn get_resolved_or_original( |
| 54 | doc_path: &DocumentPath, |
| 55 | original_cache: &mut OriginalDocumentsHash, |
| 56 | resolved_cache: &mut ResolvedDocumentsHash, |
| 57 | ) -> Result<Json, ResolverError> { |
| 58 | match get_resolved_json(doc_path, resolved_cache) { |
| 59 | Some(json) => Ok(Json::Resolved(json)), |
| 60 | None => ensure_orignal_json(doc_path, original_cache).map(Json::Original), |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | #[::tracing::instrument(level = "trace")] |
| 65 | pub fn resolve_refs_raw(json: Value) -> Result<Value, ResolverError> { |
| 66 | let mut resolving = json.clone(); |
| 67 | resolve_refs_recurse( |
no test coverage detected