Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"dynamicSchema"
];
for (const forbiddenProperty of forbiddenProperties) {
if (
dynamicSchema["Q:options"] &&
dynamicSchema["Q:options"][forbiddenProperty]
) {
log.error(
`It's not possible to add ${forbiddenProperty} using dynamicSchema`,
e
);
delete dynamicSchema["Q:options"][forbiddenProperty];
}
}
// make a copy of the schema so the schemaChangedCallbacks get applied
this.schema = Object.assign({}, mixinDeep(this.schema, dynamicSchema));
} catch (e) {
log.error(
`Failed to assign dynamicSchema to schema, you need to figure out why this happened as this case is not handled in a nice way and could feel pretty weird.`,
e
);
}
}
}