Repository navigation
v0.12.0 — Schema enum support
What's new
enum support in configurationSchema
Fields declared in a step's configurationSchema (see v0.11.0) can now restrict the value to a fixed list of allowed values:
configurationSchema: [
'mode' => ['type' => 'string', 'enum' => ['append', 'overwrite']],
],- Comparison is strict (
in_array($value, $enum, true)). - Combinable with
type— both constraints must pass. - Also works standalone, without a
type. - A disallowed value throws
InvalidStepConfigurationExceptionwith the list of allowed values in the message.
This is purely additive — no existing public signatures change. See the README for the full DSL.