Skip to content

Commit 7f8c518

Browse files
committed
Use array of operations to support multiple definitions per method
1 parent db00996 commit 7f8c518

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/spec/PathItem.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ protected function attributes(): array
5050
return [
5151
'summary' => Type::STRING,
5252
'description' => Type::STRING,
53-
'get' => Operation::class,
54-
'put' => Operation::class,
55-
'post' => Operation::class,
56-
'delete' => Operation::class,
57-
'options' => Operation::class,
58-
'head' => Operation::class,
59-
'patch' => Operation::class,
60-
'trace' => Operation::class,
53+
'get' => [Operation::class],
54+
'put' => [Operation::class],
55+
'post' => [Operation::class],
56+
'delete' => [Operation::class],
57+
'options' => [Operation::class],
58+
'head' => [Operation::class],
59+
'patch' => [Operation::class],
60+
'trace' => [Operation::class],
6161
'servers' => [Server::class],
6262
'parameters' => [Parameter::class],
6363
];

0 commit comments

Comments
 (0)