Skip to content

Commit 2481608

Browse files
committed
add explicit test case for operationId with dashes
1 parent 288ebe9 commit 2481608

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/suite/functional/Input/ParserTest.php

+21
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,27 @@ public function validSpecificationProvider(): array
6868
],
6969
],
7070
],
71+
'operationId with dashes is supported' => [
72+
[
73+
'openapi' => '3.0.0',
74+
'info' => [
75+
'title' => 'Sample API',
76+
'version' => '1.0.0',
77+
],
78+
'paths' => [
79+
'/users' => [
80+
'get' => [
81+
'operationId' => 'get-users',
82+
'responses' => [
83+
'200' => [
84+
'description' => 'OK',
85+
],
86+
],
87+
],
88+
],
89+
],
90+
],
91+
],
7192
];
7293
}
7394

0 commit comments

Comments
 (0)