Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(laravel): keep the validation rules of a parameter
  • Loading branch information
Maxcastel committed Dec 1, 2026
commit 271d56166fca3e03cccb9643d04fd64794294b47
3 changes: 2 additions & 1 deletion laravel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,8 @@ filters will be automatically documented:
![Filters documentation](images/filters-documentation.png)

On top of that, some validation rules are automatically added based on the given JSON Schema. You
can customize the set of rules inside the `constraints` option of a `QueryParameter`.
can customize the set of rules inside the `constraints` option of a `QueryParameter`: these rules
replace the generated ones, so add `required` to them when the parameter is required.

API Platform comes with several filters dedicated to Laravel, [check them out](filters.md)!

Expand Down
Loading