What's Changed
- feat: if a policy matches the name of a model we automatically register it by @valentindrdt in #6623
- feat: add hal support for laravel by @valentindrdt in #6621
- fix: reintroduce the
show_webby
parameter in Laravel config by @Deuchnord in #6741 - feat(doctrine): doctrine filters like laravel eloquent filters by @vinceAmstoutz in #6775
- feat(laravel): boolean filter by @adryyy10 in #6806
- feat(openapi): HTTP Authentication Support for Swagger UI by @toitzi in #6665
- feat(state): strict query parameters by @soyuka in #6399
- feat(doctrine): enhance getLinksHandler with method validation and typo suggestions by @SebLevDev in #6874
- feat(graphql): allow to configure max query depth and max query compl… by @soyuka in #6880
- feat(metadata): hide an hydra endpoint (draft) by @soyuka in #6871
- fix!(laravel): fix use laravel fillable for writable props by @toitzi in #6898
- fix(hydra): rdfs:label should not duplicate title by @soyuka in #6748
- feat(swagger-ui): persist authorization by @ViPErCZ in #6877
New Contributors
- @valentindrdt made their first contribution in #6623
- @simondaigre made their first contribution in #6757
- @adryyy10 made their first contribution in #6806
Notes
The hydra patch changes default hydra:title
and uses the resource shortname
. Previously the hydra:title
information was duplicating the hydra:description
.
The rdfs:label
got removed from the hydra:Class
as it was used instead of the hydra:title
.
On hydra:property
rdfs:label
got renamed to label
as the rdfs
namespace is available in the context.
The ApiPlatform\Metadata\ErrorResource
and the ConstraintViolation
(ValidationException
class) are now generated directly from your PHP classes, only our ConstraintViolationList
is hard-written and documents the ConstraintViolation::violation
property. Therefore, your own error resources are also documented. On top of that, we now set the rdfs:subClassOf
to hydra:Error
.
#[ApiProperty(hydra: false)]
allows you to skip a documented hydra:supportedProperty
on a class.
On write operations, we added the expectsHeader field.
Full Changelog: v4.0.15...v4.1.0-alpha.2