| 614 | * Implement this interface in order for the construct to be able to validate itself. |
| 615 | */ |
| 616 | export interface IValidation { |
| 617 | /** |
| 618 | * Validate the current construct. |
| 619 | * |
| 620 | * This method can be implemented by derived constructs in order to perform |
| 621 | * validation logic. It is called on all constructs before synthesis. |
| 622 | * |
| 623 | * @returns An array of validation error messages, or an empty array if there the construct is valid. |
| 624 | */ |
| 625 | validate(): string[]; |
| 626 | } |
| 627 | |
| 628 | /** |
| 629 | * In what order to return constructs |