Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

- Disabled API Platform's legacy query-parameter validation system
(`legacy_query_parameter_validation: false`): its classes self-deprecate on load since 3.4,
spamming the `php` log channel on every request, and none of our filters declare the
constraints it enforces. The component is removed in API Platform 4.

## [3.0.0-rc6] - 2026-06-10

- Fixed the 2.x → 3.0 screen client auto-upgrade path: images and the release tarball now also
Expand Down
9 changes: 8 additions & 1 deletion config/packages/api_platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ api_platform:
doctrine:
enabled: true

validator:
# Don't register API Platform's legacy query-parameter validation
# system (ApiPlatform\ParameterValidator\...): its validator classes
# self-deprecate on load since 3.4, and none of our filters declare
# the constraints it enforces (all are required => false, no
# enum/bounds/length). The component is removed in API Platform 4.
legacy_query_parameter_validation: false

swagger:
versions: [3]
# api_keys:
Expand All @@ -57,7 +65,6 @@ api_platform:
# The 4 following handlers are registered by default, keep those lines to prevent unexpected side effects
Symfony\Component\Serializer\Exception\ExceptionInterface: 400 # Use a raw status code (recommended)
ApiPlatform\Exception\InvalidArgumentException: !php/const Symfony\Component\HttpFoundation\Response::HTTP_BAD_REQUEST
ApiPlatform\ParameterValidator\Exception\ValidationExceptionInterface: 400
Doctrine\ORM\OptimisticLockException: 409

# Validation exception
Expand Down
Loading