File tree 4 files changed +35
-1
lines changed
4 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 10.6.1] - 2024.02.10
8
+ ### Fixed
9
+ - operationId containing dashes is converted to camel case
10
+
7
11
## [ 10.6.0] - 2024.01.10
8
12
### Added
9
13
- Api key authentication strategy added
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ public function create(
40
40
$ operationId
41
41
);
42
42
trigger_error ($ warningMessage , E_USER_WARNING );
43
+ } elseif (str_contains ($ operationId , '- ' )) {
44
+ $ operationId = CaseCaster::toCamel ($ operationId );
43
45
}
44
46
45
47
$ parameters = array_merge ($ commonParameters , $ operation ->parameters ?? []);
Original file line number Diff line number Diff line change 8
8
paths :
9
9
/pets :
10
10
get :
11
- operationId : findPets
11
+ operationId : find-pets
12
12
parameters :
13
13
- name : tags
14
14
in : query
@@ -110,6 +110,13 @@ paths:
110
110
schema :
111
111
type : integer
112
112
format : int64
113
+ - name : food_id
114
+ in : path
115
+ description : ID of food to delete
116
+ required : true
117
+ schema :
118
+ type : integer
119
+ format : int64
113
120
responses :
114
121
' 204 ' :
115
122
description : pet food deleted
Original file line number Diff line number Diff line change @@ -68,6 +68,27 @@ public function validSpecificationProvider(): array
68
68
],
69
69
],
70
70
],
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
+ ],
71
92
];
72
93
}
73
94
You can’t perform that action at this time.
0 commit comments