Implement this interface in order for the construct to be able to validate itself.
Validate the current construct.
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
- Return type
An array of validation error messages, or an empty array if there the construct is valid.