Skip to content

Custom schema rules correctly override default decorators

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Apr 09:22
· 2 commits to 22.x since this release

22.4.2 (2026-04-05)

Bug Fixes

  • schema-generator: prevent default decorators from leaking into custom schema rules
    (66e0a5ce)

loadRules() was using deepmerge without custom merge strategies, which caused two issues:

  1. decorators array format: default decorators were concatenated with user-defined ones instead of being replaced (e.g.
    [@column(), @decimal()] instead of just [@decimal()])
  2. Deprecated decorator string format: the default decorators array took precedence over the user's decorator string,
    silently ignoring it

Custom type and column rules now correctly replace the defaults.