You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+55Lines changed: 55 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,61 @@
4
4
5
5
* GraphQL: Add support for custom types
6
6
7
+
## 2.4.3
8
+
9
+
* Doctrine: allow autowiring of filter classes
10
+
* Doctrine: don't use `fetchJoinCollection` on `Paginator` when not needed
11
+
* Doctrine: fix a BC break in `OrderFilter`
12
+
* GraphQL: input objects aren't nullable anymore (compliance with the Relay spec)
13
+
* Cache: Remove some useless purges
14
+
* Mercure: publish to Mercure using the default response format
15
+
* Mercure: use the Serializer context
16
+
* OpenAPI: fix documentation of the `PropertyFilter`
17
+
* OpenAPI: fix generation of the `servers` block (also fixes the compatibility with Postman)
18
+
* OpenAPI: skip not readable and not writable properties from the spec
19
+
* OpenAPI: add the `id` path parameter for POST item operation
20
+
* Serializer: add support for Symfony Serializer's `@SerializedName` metadata
21
+
* Metadata: `ApiResource`'s `attributes` property now defaults to `null`, as expected
22
+
* Metadata: Fix identifier support when using an interface as resource class
23
+
* Metadata: the HTTP method is now always uppercased
24
+
* Allow to disable listeners per operation (fix handling of empty request content)
25
+
26
+
Previously, empty request content was allowed for any `POST` and `PUT` operations. This was an unsafe assumption which caused [other problems](https://github.com/api-platform/core/issues/2731).
27
+
28
+
If you wish to allow empty request content, please add `"deserialize"=false` to the operation's attributes. For example:
29
+
30
+
```php
31
+
<?php
32
+
// api/src/Entity/Book.php
33
+
34
+
use ApiPlatform\Core\Annotation\ApiResource;
35
+
use App\Controller\PublishBookAction;
36
+
37
+
/**
38
+
* @ApiResource(
39
+
* itemOperations={
40
+
* "put_publish"={
41
+
* "method"="PUT",
42
+
* "path"="/books/{id}/publish",
43
+
* "controller"=PublishBookAction::class,
44
+
* "deserialize"=false,
45
+
* },
46
+
* },
47
+
* )
48
+
*/
49
+
class Book
50
+
{
51
+
```
52
+
53
+
You may also need to add `"validate"=false` if the controller result is `null` (possibly because you don't need to persist the resource).
54
+
55
+
* Return the `204` HTTP status code when the output class is set to `null`
56
+
* Be more resilient when normalizing non-resource objects
57
+
* Replace the `data` request attribute by the return of the data persister
58
+
* Fix error message in identifiers extractor
59
+
* Improve the bundle's default configuration when using `symfony/symfony` is required
60
+
* Fix the use of `MetadataAwareNameConverter` when available (configuring `name_converter: serializer.name_converter.metadata_aware` will now result in a circular reference error)
61
+
7
62
## 2.4.2
8
63
9
64
* Fix a dependency injection injection problem in `FilterEagerLoadingExtension`
0 commit comments