Skip to content

fix(laravel): partial patch validation config to replace required with sometimes#7882

Merged
soyuka merged 1 commit intoapi-platform:4.2from
soyuka:fix/7648
Mar 25, 2026
Merged

fix(laravel): partial patch validation config to replace required with sometimes#7882
soyuka merged 1 commit intoapi-platform:4.2from
soyuka:fix/7648

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Mar 25, 2026

Q A
Branch? 4.2
Tickets Fixes #7648
License MIT
Doc PR
  • Add partial_patch_validation config option (default false for BC)
  • When enabled, PATCH operations rewrite required rules to sometimes at metadata level
  • Fixes relationship fields failing required validation on partial updates

…th sometimes (api-platform#7648)

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Tickets       | Fixes api-platform#7648
| License       | MIT
| Doc PR        | ∅

* Add `partial_patch_validation` config option (default false for BC)
* When enabled, PATCH operations rewrite `required` rules to `sometimes` at metadata level
* Fixes relationship fields failing required validation on partial updates
@soyuka soyuka changed the title feat(laravel): partial patch validation config to replace required with sometimes fix(laravel): partial patch validation config to replace required with sometimes Mar 25, 2026
@soyuka soyuka merged commit 7c562a5 into api-platform:4.2 Mar 25, 2026
149 of 150 checks passed
@soyuka soyuka deleted the fix/7648 branch March 25, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant