Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
} else {
field.definition = cat.definition;
}
} else if (typeof field === 'string') {
const src = `${source}.${key}`;
if (!category) {
errors.push(
new SchemaValidationError('illegalParamsResolving', src, {
type: 'publicAction',
})
);
continue;
}
try {
const def = extractByPath(category, field.field, ms, src);
Object.assign(field, def);
} catch (error) {
errors.push(error);
}
}
}
return errors;
};