Skip to content

Commit f1ef0a5

Browse files
authored
fix(reference): fix resolving of JSON Schema identifier keyword (#4919)
The current JSON Schema identifier was already present in ancestor identifiers and there was no need to handle it explicitly again.
1 parent f483057 commit f1ef0a5

File tree

1 file changed

+1
-1
lines changed
  • packages/apidom-reference/src/dereference/strategies/openapi-3-1

1 file changed

+1
-1
lines changed

packages/apidom-reference/src/dereference/strategies/openapi-3-1/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const resolveSchema$idField = (retrievalURI: string, schemaElement: Schem
4040
return url.resolve(acc, url.sanitize(url.stripHash($id)));
4141
},
4242
retrievalURI,
43-
[...ancestorsSchemaIdentifiers, toValue(schemaElement.$id)],
43+
ancestorsSchemaIdentifiers,
4444
);
4545
};
4646

0 commit comments

Comments
 (0)