Skip to content

Commit 42cb590

Browse files
committed
Fixed deprecations with api platform
1 parent 6fd05e1 commit 42cb590

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

config/packages/api_platform.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ api_platform:
3434

3535
keep_legacy_inflector: false
3636
# Need to be true, or some tests will fail
37-
use_symfony_listeners: true
37+
use_symfony_listeners: true
38+
39+
serializer:
40+
# Change this to false later, to remove the hydra prefix on the API
41+
hydra_prefix: true

src/ApiPlatform/Filter/EntityFilterHelper.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,6 @@ public function getDescription(array $properties): array
9292
'type' => Type::BUILTIN_TYPE_STRING,
9393
'required' => false,
9494
'description' => 'Filter using a comma seperated list of element IDs. Use + to include all direct children and ++ to include all children recursively.',
95-
'openapi' => [
96-
'example' => '',
97-
'allowReserved' => false,// if true, query parameters will be not percent-encoded
98-
'allowEmptyValue' => true,
99-
'explode' => false, // to be true, the type must be Type::BUILTIN_TYPE_ARRAY, ?product=blue,green will be ?product=blue&product=green
100-
],
10195
];
10296
}
10397
return $description;

src/ApiPlatform/Filter/LikeFilter.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ public function getDescription(string $resourceClass): array
6767
'type' => Type::BUILTIN_TYPE_STRING,
6868
'required' => false,
6969
'description' => 'Filter using a LIKE SQL expression. Use % as wildcard for multiple characters and _ for single characters. For example, to search for all items containing foo, use foo. To search for all items starting with foo, use foo%. To search for all items ending with foo, use %foo',
70-
'openapi' => [
71-
'example' => '',
72-
'allowReserved' => false,// if true, query parameters will be not percent-encoded
73-
'allowEmptyValue' => true,
74-
'explode' => false, // to be true, the type must be Type::BUILTIN_TYPE_ARRAY, ?product=blue,green will be ?product=blue&product=green
75-
],
7670
];
7771
}
7872
return $description;

src/ApiPlatform/Filter/TagFilter.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,6 @@ public function getDescription(string $resourceClass): array
8989
'type' => Type::BUILTIN_TYPE_STRING,
9090
'required' => false,
9191
'description' => 'Filter for tags of a part',
92-
'openapi' => [
93-
'example' => '',
94-
'allowReserved' => false,// if true, query parameters will be not percent-encoded
95-
'allowEmptyValue' => true,
96-
'explode' => false, // to be true, the type must be Type::BUILTIN_TYPE_ARRAY, ?product=blue,green will be ?product=blue&product=green
97-
],
9892
];
9993
}
10094
return $description;

0 commit comments

Comments
 (0)