Updated Dependencies, Makefiles for build process, Docker Images for Front & Backend
This commit is contained in:
@@ -19,8 +19,8 @@ export async function validateOperations(actions: Action[]): Promise<{ valid: bo
|
||||
return { valid: false, reason: `action.type ${action.type} does not exist` };
|
||||
}
|
||||
const schema = await getSchemaByName(action.type);
|
||||
if(!operator) {
|
||||
return { valid: false, reason: `action.type ${action.type} does not exist` };
|
||||
if(!schema) {
|
||||
return { valid: false, reason: `schema for action.type ${action.type} does not exist` };
|
||||
}
|
||||
const validationResult = schema.schema.validate({values: action.values});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user