# Custom schema rules correctly override default decorators in Lucid

Canonical URL : https://adonisjs-signal.jrmc.dev/insights/f0254b99-53ca-40ab-a387-f3619a645089
Source release or documentation date : 2026-04-05T09:22:29.000Z
Category : release | Developer impact : medium
Affected packages : @adonisjs/lucid

In AdonisJS Lucid v22\.4\.2, a bug was fixed where custom schema rules did not properly override default decorators due to improper merging logic\. This fix ensures that user\-defined decorators replace default ones instead of being concatenated or ignored\.

## What this means for your code

Developers using custom schema rules in Lucid will now see their decorators correctly applied without interference from default decorators\. No migration or code changes are required, but the behavior is now more predictable and correct\.

## Suggested actions

- Update @adonisjs/lucid to v22\.4\.2 to benefit from the fix

## Original sources

- [Custom schema rules correctly override default decorators](https://github.com/adonisjs/lucid/releases/tag/v22.4.2)

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.
