Skip to content

v0.12.0 — Schema enum support

Choose a tag to compare

@kevinbalicot kevinbalicot released this 06 Aug 14:31
· 10 commits to main since this release

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 InvalidStepConfigurationException with the list of allowed values in the message.

This is purely additive — no existing public signatures change. See the README for the full DSL.

Full changelog

v0.11.0...v0.12.0