Skip to content

Commit 8c8cb57

Browse files
authored
Fix requireAllExcept runtime error (#100)
1 parent e3cfe07 commit 8c8cb57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/keywords/requireAllExcept.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const compile = async (schema, _ast, parentSchema) => {
1212
const propertyNames = Browser.typeOf(propertiesSchema) === "object" ? Browser.keys(propertiesSchema) : [];
1313

1414
const required = new Set(propertyNames);
15-
requireAllExcept.forEach((propertyName) => propertyNames.remove(propertyName));
15+
requireAllExcept.forEach((propertyName) => required.delete(propertyName));
1616
return [...required];
1717
};
1818

0 commit comments

Comments
 (0)