Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Jan 28, 2025
1 parent 254a77c commit cc5f5ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dereference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function crawl<S extends object = JSONSchema, O extends ParserOptions<S> = Parse
circular = dereferenced.circular;
// Avoid pointless mutations; breaks frozen objects to no profit
if (obj[key] !== dereferenced.value) {
// If we have properties we want to preserve from our derefernced schema then we need
// If we have properties we want to preserve from our dereferenced schema then we need
// to copy them over to our new object.
const preserved: Map<string, unknown> = new Map();
if (typeof obj[key] === "object" && !Array.isArray(obj[key])) {
Expand Down

0 comments on commit cc5f5ab

Please sign in to comment.