@@ -5,7 +5,7 @@ import { ID_KEY, JSON_SCHEMA_DRAFT_2020_12, REF_KEY, SCHEMA_KEY } from './consta
55import  {  GenericObjectType ,  RJSFSchema ,  StrictRJSFSchema  }  from  './types' ; 
66import  isObject  from  'lodash/isObject' ; 
77import  isEmpty  from  'lodash/isEmpty' ; 
8- import  {   equal ,   resolve   }  from  'fast-uri' ; 
8+ import  UriResolver  from  'fast-uri' ; 
99
1010/** Looks for the `$id` pointed by `ref` in the schema definitions embedded in 
1111 * a JSON Schema bundle 
@@ -20,7 +20,7 @@ function findEmbeddedSchemaRecursive<S extends StrictRJSFSchema = RJSFSchema>(sc
2020      continue ; 
2121    } 
2222    if  ( ID_KEY  in  subSchema )  { 
23-       if  ( equal ( subSchema [ ID_KEY ]  as  string ,  ref ) )  { 
23+       if  ( UriResolver . equal ( subSchema [ ID_KEY ]  as  string ,  ref ) )  { 
2424        return  subSchema  as  S ; 
2525      } 
2626    }  else  { 
@@ -79,7 +79,7 @@ export function findSchemaDefinitionRecursive<S extends StrictRJSFSchema = RJSFS
7979      } 
8080    } 
8181  }  else  if  ( rootSchema [ SCHEMA_KEY ]  ===  JSON_SCHEMA_DRAFT_2020_12 )  { 
82-     const  resolvedRef  =  baseURI  ? resolve ( baseURI ,  ref )  : ref ; 
82+     const  resolvedRef  =  baseURI  ? UriResolver . resolve ( baseURI ,  ref )  : ref ; 
8383    const  [ refId ,  ...refAnchor ]  =  resolvedRef . replace ( / # \/ ? $ / ,  '' ) . split ( '#' ) ; 
8484    current  =  findEmbeddedSchemaRecursive < S > ( rootSchema ,  refId . replace ( / \/ $ / ,  '' ) ) ; 
8585    if  ( current  !==  undefined )  { 
0 commit comments