Skip to content

Commit fee97bc

Browse files
committed
feat(openapi): fix order error in resources
1 parent ab99fff commit fee97bc

File tree

8 files changed

+30
-37
lines changed

8 files changed

+30
-37
lines changed

src/Metadata/Delete.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ public function __construct(
4848
?array $exceptionToStatus = null,
4949
?bool $queryParameterValidationEnabled = null,
5050
?array $links = null,
51-
?array $errors = null,
52-
5351
?string $shortName = null,
5452
?string $class = null,
5553
?bool $paginationEnabled = null,
@@ -94,6 +92,7 @@ public function __construct(
9492
$provider = null,
9593
$processor = null,
9694
?OptionsInterface $stateOptions = null,
95+
?array $errors = null,
9796
array|Parameters|null $parameters = null,
9897
mixed $rules = null,
9998
?string $policy = null,
@@ -131,7 +130,6 @@ public function __construct(
131130
exceptionToStatus: $exceptionToStatus,
132131
queryParameterValidationEnabled: $queryParameterValidationEnabled,
133132
links: $links,
134-
errors: $errors,
135133
shortName: $shortName,
136134
class: $class,
137135
paginationEnabled: $paginationEnabled,
@@ -183,6 +181,7 @@ class: $class,
183181
strictQueryParameterValidation: $strictQueryParameterValidation,
184182
hideHydraOperation: $hideHydraOperation,
185183
stateOptions: $stateOptions,
184+
errors: $errors,
186185
);
187186
}
188187
}

src/Metadata/Error.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ public function __construct(
4848
?array $exceptionToStatus = null,
4949
?bool $queryParameterValidationEnabled = null,
5050
?array $links = null,
51-
?array $errors = null,
52-
5351
?string $shortName = null,
5452
?string $class = null,
5553
?bool $paginationEnabled = null,
@@ -94,6 +92,7 @@ public function __construct(
9492
$provider = null,
9593
$processor = null,
9694
?OptionsInterface $stateOptions = null,
95+
?array $errors = null,
9796
?bool $hideHydraOperation = null,
9897
array $extraProperties = [],
9998
) {
@@ -125,7 +124,6 @@ public function __construct(
125124
exceptionToStatus: $exceptionToStatus,
126125
queryParameterValidationEnabled: $queryParameterValidationEnabled,
127126
links: $links,
128-
errors: $errors,
129127
shortName: $shortName,
130128
class: $class,
131129
paginationEnabled: $paginationEnabled,
@@ -170,6 +168,7 @@ class: $class,
170168
provider: $provider,
171169
processor: $processor,
172170
stateOptions: $stateOptions,
171+
errors: $errors,
173172
hideHydraOperation: $hideHydraOperation,
174173
extraProperties: $extraProperties,
175174
);

src/Metadata/Get.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ public function __construct(
4848
?array $exceptionToStatus = null,
4949
?bool $queryParameterValidationEnabled = null,
5050
?array $links = null,
51-
?array $errors = null,
52-
5351
?string $shortName = null,
5452
?string $class = null,
5553
?bool $paginationEnabled = null,
@@ -94,6 +92,7 @@ public function __construct(
9492
$provider = null,
9593
$processor = null,
9694
?OptionsInterface $stateOptions = null,
95+
?array $errors = null,
9796
array|Parameters|null $parameters = null,
9897
mixed $rules = null,
9998
?string $policy = null,
@@ -130,7 +129,6 @@ public function __construct(
130129
exceptionToStatus: $exceptionToStatus,
131130
queryParameterValidationEnabled: $queryParameterValidationEnabled,
132131
links: $links,
133-
errors: $errors,
134132
shortName: $shortName,
135133
class: $class,
136134
paginationEnabled: $paginationEnabled,
@@ -175,6 +173,7 @@ class: $class,
175173
provider: $provider,
176174
processor: $processor,
177175
stateOptions: $stateOptions,
176+
errors: $errors,
178177
parameters: $parameters,
179178
rules: $rules,
180179
policy: $policy,

src/Metadata/GetCollection.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ public function __construct(
4848
?array $exceptionToStatus = null,
4949
?bool $queryParameterValidationEnabled = null,
5050
?array $links = null,
51-
?array $errors = null,
52-
5351
?string $shortName = null,
5452
?string $class = null,
5553
?bool $paginationEnabled = null,
@@ -94,6 +92,7 @@ public function __construct(
9492
$provider = null,
9593
$processor = null,
9694
?OptionsInterface $stateOptions = null,
95+
?array $errors = null,
9796
array|Parameters|null $parameters = null,
9897
array|string|null $rules = null,
9998
?string $policy = null,
@@ -131,7 +130,6 @@ public function __construct(
131130
exceptionToStatus: $exceptionToStatus,
132131
queryParameterValidationEnabled: $queryParameterValidationEnabled,
133132
links: $links,
134-
errors: $errors,
135133
shortName: $shortName,
136134
class: $class,
137135
paginationEnabled: $paginationEnabled,
@@ -183,6 +181,7 @@ class: $class,
183181
strictQueryParameterValidation: $strictQueryParameterValidation,
184182
hideHydraOperation: $hideHydraOperation,
185183
stateOptions: $stateOptions,
184+
errors: $errors,
186185
);
187186
}
188187

src/Metadata/Operation.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,20 @@ abstract class Operation extends Metadata
4848
* class?: string|null,
4949
* name?: string,
5050
* }|string|false|null $output {@see https://api-platform.com/docs/core/dto/#specifying-an-input-or-an-output-data-representation}
51-
* @param string|array|bool|null $mercure {@see https://api-platform.com/docs/core/mercure}
52-
* @param string|bool|null $messenger {@see https://api-platform.com/docs/core/messenger/#dispatching-a-resource-through-the-message-bus}
53-
* @param bool|null $elasticsearch {@see https://api-platform.com/docs/core/elasticsearch/}
54-
* @param bool|null $read {@see https://api-platform.com/docs/core/events/#the-event-system}
55-
* @param bool|null $deserialize {@see https://api-platform.com/docs/core/events/#the-event-system}
56-
* @param bool|null $validate {@see https://api-platform.com/docs/core/events/#the-event-system}
57-
* @param bool|null $write {@see https://api-platform.com/docs/core/events/#the-event-system}
58-
* @param bool|null $serialize {@see https://api-platform.com/docs/core/events/#the-event-system}
59-
* @param bool|null $fetchPartial {@see https://api-platform.com/docs/core/performance/#fetch-partial}
60-
* @param bool|null $forceEager {@see https://api-platform.com/docs/core/performance/#force-eager}
61-
* @param string|callable|null $provider {@see https://api-platform.com/docs/core/state-providers/#state-providers}
62-
* @param string|callable|null $processor {@see https://api-platform.com/docs/core/state-processors/#state-processors}
63-
* @param array<string, Parameter> $parameters
64-
* @param array<class-string<ProblemExceptionInterface>>|null $errors
51+
* @param string|array|bool|null $mercure {@see https://api-platform.com/docs/core/mercure}
52+
* @param string|bool|null $messenger {@see https://api-platform.com/docs/core/messenger/#dispatching-a-resource-through-the-message-bus}
53+
* @param bool|null $elasticsearch {@see https://api-platform.com/docs/core/elasticsearch/}
54+
* @param bool|null $read {@see https://api-platform.com/docs/core/events/#the-event-system}
55+
* @param bool|null $deserialize {@see https://api-platform.com/docs/core/events/#the-event-system}
56+
* @param bool|null $validate {@see https://api-platform.com/docs/core/events/#the-event-system}
57+
* @param bool|null $write {@see https://api-platform.com/docs/core/events/#the-event-system}
58+
* @param bool|null $serialize {@see https://api-platform.com/docs/core/events/#the-event-system}
59+
* @param bool|null $fetchPartial {@see https://api-platform.com/docs/core/performance/#fetch-partial}
60+
* @param bool|null $forceEager {@see https://api-platform.com/docs/core/performance/#force-eager}
61+
* @param string|callable|null $provider {@see https://api-platform.com/docs/core/state-providers/#state-providers}
62+
* @param string|callable|null $processor {@see https://api-platform.com/docs/core/state-processors/#state-processors}
63+
* @param array<string, Parameter> $parameters
64+
* @param array<class-string<ProblemExceptionInterface>>|null $errors
6565
*/
6666
public function __construct(
6767
protected ?string $shortName = null,

src/Metadata/Patch.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ public function __construct(
4848
?array $exceptionToStatus = null,
4949
?bool $queryParameterValidationEnabled = null,
5050
?array $links = null,
51-
?array $errors = null,
52-
5351
?string $shortName = null,
5452
?string $class = null,
5553
?bool $paginationEnabled = null,
@@ -94,6 +92,7 @@ public function __construct(
9492
$provider = null,
9593
$processor = null,
9694
?OptionsInterface $stateOptions = null,
95+
?array $errors = null,
9796
array|Parameters|null $parameters = null,
9897
mixed $rules = null,
9998
?string $policy = null,
@@ -131,7 +130,6 @@ public function __construct(
131130
exceptionToStatus: $exceptionToStatus,
132131
queryParameterValidationEnabled: $queryParameterValidationEnabled,
133132
links: $links,
134-
errors: $errors,
135133
shortName: $shortName,
136134
class: $class,
137135
paginationEnabled: $paginationEnabled,
@@ -176,13 +174,14 @@ class: $class,
176174
provider: $provider,
177175
processor: $processor,
178176
stateOptions: $stateOptions,
177+
errors: $errors,
179178
parameters: $parameters,
180179
rules: $rules,
181180
policy: $policy,
182181
middleware: $middleware,
183182
strictQueryParameterValidation: $strictQueryParameterValidation,
184183
hideHydraOperation: $hideHydraOperation,
185-
extraProperties: $extraProperties
184+
extraProperties: $extraProperties,
186185
);
187186
}
188187
}

src/Metadata/Post.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ public function __construct(
4848
?array $exceptionToStatus = null,
4949
?bool $queryParameterValidationEnabled = null,
5050
?array $links = null,
51-
?array $errors = null,
52-
5351
?string $shortName = null,
5452
?string $class = null,
5553
?bool $paginationEnabled = null,
@@ -94,6 +92,7 @@ public function __construct(
9492
$provider = null,
9593
$processor = null,
9694
?OptionsInterface $stateOptions = null,
95+
?array $errors = null,
9796
array|Parameters|null $parameters = null,
9897
mixed $rules = null,
9998
?string $policy = null,
@@ -132,7 +131,6 @@ public function __construct(
132131
exceptionToStatus: $exceptionToStatus,
133132
queryParameterValidationEnabled: $queryParameterValidationEnabled,
134133
links: $links,
135-
errors: $errors,
136134
shortName: $shortName,
137135
class: $class,
138136
paginationEnabled: $paginationEnabled,
@@ -177,6 +175,7 @@ class: $class,
177175
provider: $provider,
178176
processor: $processor,
179177
stateOptions: $stateOptions,
178+
errors: $errors,
180179
parameters: $parameters,
181180
rules: $rules,
182181
policy: $policy,

src/Metadata/Put.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ public function __construct(
4848
?array $exceptionToStatus = null,
4949
?bool $queryParameterValidationEnabled = null,
5050
?array $links = null,
51-
?array $errors = null,
52-
5351
?string $shortName = null,
5452
?string $class = null,
5553
?bool $paginationEnabled = null,
@@ -94,6 +92,7 @@ public function __construct(
9492
$provider = null,
9593
$processor = null,
9694
?OptionsInterface $stateOptions = null,
95+
?array $errors = null,
9796
array|Parameters|null $parameters = null,
9897
mixed $rules = null,
9998
?string $policy = null,
@@ -132,7 +131,6 @@ public function __construct(
132131
exceptionToStatus: $exceptionToStatus,
133132
queryParameterValidationEnabled: $queryParameterValidationEnabled,
134133
links: $links,
135-
errors: $errors,
136134
shortName: $shortName,
137135
class: $class,
138136
paginationEnabled: $paginationEnabled,
@@ -177,13 +175,14 @@ class: $class,
177175
provider: $provider,
178176
processor: $processor,
179177
stateOptions: $stateOptions,
178+
errors: $errors,
180179
parameters: $parameters,
181180
rules: $rules,
182181
policy: $policy,
183182
middleware: $middleware,
184183
strictQueryParameterValidation: $strictQueryParameterValidation,
185184
hideHydraOperation: $hideHydraOperation,
186-
extraProperties: $extraProperties
185+
extraProperties: $extraProperties,
187186
);
188187
}
189188

0 commit comments

Comments
 (0)