Add #[ValidateAnyOf] argument validator #19

Open
opened 2026-07-03 06:17:38 +02:00 by c.fahner · 0 comments
Owner

Currently all ArgumentValidator's on a resource parameter should validate for a given argument value. However, a parameter could allow multiple input formats (eg. a string accepting multiple regex patterns, each defined in their own validator).

The ValidateAnyOf argument validator should accept a callback that returns validator instances. It should test each validator in-order until one succeeds. If none succeed it does not validate.

Currently all `ArgumentValidator`'s on a resource parameter should validate for a given argument value. However, a parameter could allow multiple input formats (eg. a string accepting multiple regex patterns, each defined in their own validator). The `ValidateAnyOf` argument validator should accept a callback that returns validator instances. It should test each validator in-order until one succeeds. If none succeed it does not validate.
c.fahner changed title from Add #[ValidateAny] argument validator to Add #[ValidateAnyOf] argument validator 2026-07-03 16:18:01 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
slendium/framework#19
No description provided.