Now, when defining a validator in a SwitchYard composite it applies to every wire defined in the composite. This is not ideal, as it may require to customize validations to take the wire in context, and/or to implement validation in a different mechanism, as embedding into a component.
Validation should be defined where to execute, and it should only execute at the defined wires.
It will improve on:
- Reusability and applications design