@@ -208,7 +208,7 @@ public function getTypeName(array $parameter, array $method = []): string
208208 protected function populateGenerics (string $ model , array $ spec , array &$ generics , bool $ skipFirst = false )
209209 {
210210 if (!$ skipFirst && $ spec ['definitions ' ][$ model ]['additionalProperties ' ]) {
211- $ generics [] = $ this ->toUpperCase ($ model );
211+ $ generics [] = $ this ->toUpperCaseWords ($ model );
212212 }
213213
214214 $ properties = $ spec ['definitions ' ][$ model ]['properties ' ];
@@ -257,14 +257,14 @@ public function getReturn(array $method, array $spec): string
257257 $ ret .= 'Models. ' ;
258258 }
259259
260- $ ret .= $ this ->toUpperCase ($ method ['responseModel ' ]);
260+ $ ret .= $ this ->toUpperCaseWords ($ method ['responseModel ' ]);
261261
262262 $ models = [];
263263
264264 $ this ->populateGenerics ($ method ['responseModel ' ], $ spec , $ models );
265265
266266 $ models = array_unique ($ models );
267- $ models = array_filter ($ models , fn ($ model ) => $ model != $ this ->toUpperCase ($ method ['responseModel ' ]));
267+ $ models = array_filter ($ models , fn ($ model ) => $ model != $ this ->toUpperCaseWords ($ method ['responseModel ' ]));
268268
269269 if (!empty ($ models )) {
270270 $ ret .= '< ' . implode (', ' , $ models ) . '> ' ;
@@ -284,9 +284,9 @@ public function getSubSchema(array $property, array $spec): string
284284 $ generics = [];
285285 $ this ->populateGenerics ($ property ['sub_schema ' ], $ spec , $ generics );
286286
287- $ generics = array_filter ($ generics , fn ($ model ) => $ model != $ this ->toUpperCase ($ property ['sub_schema ' ]));
287+ $ generics = array_filter ($ generics , fn ($ model ) => $ model != $ this ->toUpperCaseWords ($ property ['sub_schema ' ]));
288288
289- $ ret .= $ this ->toUpperCase ($ property ['sub_schema ' ]);
289+ $ ret .= $ this ->toUpperCaseWords ($ property ['sub_schema ' ]);
290290 if (!empty ($ generics )) {
291291 $ ret .= '< ' . implode (', ' , $ generics ) . '> ' ;
292292 }
0 commit comments