Dynamic Operators
This commit is contained in:
16
shared-operations/src/workflow/validateOperations.ts
Normal file
16
shared-operations/src/workflow/validateOperations.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Action } from "../../declarations/Action";
|
||||
|
||||
export function validateOperations(actions: Action[]): { valid: boolean, reason?: string} {
|
||||
// TODO: Validate using inbuilt validators:
|
||||
/*
|
||||
validationResult = impose.validate()
|
||||
if(validationResult.valid) {
|
||||
// Check Next
|
||||
}
|
||||
else {
|
||||
return validationResult.reason
|
||||
}
|
||||
*/
|
||||
|
||||
return { valid: true };
|
||||
}
|
||||
Reference in New Issue
Block a user