mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Remove keys from unrecognised set as soon as found
This commit is contained in:
2
lib/entry-points.js
generated
2
lib/entry-points.js
generated
@@ -144598,6 +144598,7 @@ function checkSchema(schema, obj, options = {}, path29 = "") {
|
||||
const inputKeys = new Set(Object.keys(obj));
|
||||
for (const [key, validator] of Object.entries(schema)) {
|
||||
const hasKey = key in obj;
|
||||
inputKeys.delete(key);
|
||||
if (validator.required && !hasKey) {
|
||||
result.valid = false;
|
||||
if (options.failFast) {
|
||||
@@ -144623,7 +144624,6 @@ function checkSchema(schema, obj, options = {}, path29 = "") {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
inputKeys.delete(key);
|
||||
}
|
||||
for (const remainingKey of inputKeys) {
|
||||
result.unknownKeys.push(`${path29}${remainingKey}`);
|
||||
|
||||
Reference in New Issue
Block a user