@@ -9747,7 +9747,7 @@ private function setPaths() /*: void*/
9747
9747
$ operationType = $ operation . ucfirst ($ type );
9748
9748
$ this ->openapi ->set ("paths| $ path| $ method|tags|0 " , "$ type " );
9749
9749
$ this ->openapi ->set ("paths| $ path| $ method|operationId " , "$ operation " . "_ " . "$ type " );
9750
- $ this ->openapi ->set ("paths| $ path| $ method|description " , "Request API ' $ type ' status " );
9750
+ $ this ->openapi ->set ("paths| $ path| $ method|description " , "Request API ' $ operation ' status " );
9751
9751
$ this ->openapi ->set ("paths| $ path| $ method|responses|200| \$ref " , "#/components/responses/ $ operationType " );
9752
9752
9753
9753
}
@@ -9761,7 +9761,7 @@ private function setComponentSchema() /*: void*/
9761
9761
$ operationType = $ operation . ucfirst ($ type );
9762
9762
$ prefix = "components|schemas| $ operationType " ;
9763
9763
$ this ->openapi ->set ("$ prefix|type " , "object " );
9764
- switch ($ type ) {
9764
+ switch ($ operation ) {
9765
9765
case 'ping ' :
9766
9766
$ this ->openapi ->set ("$ prefix|required " , ['db ' , 'cache ' ]);
9767
9767
$ this ->openapi ->set ("$ prefix|properties|db|type " , 'integer ' );
@@ -9784,7 +9784,7 @@ private function setComponentResponse() /*: void*/
9784
9784
foreach ($ this ->operations as $ type => $ operationPair ) {
9785
9785
foreach ($ operationPair as $ operation => $ method ) {
9786
9786
$ operationType = $ operation . ucfirst ($ type );
9787
- $ this ->openapi ->set ("components|responses| $ operationType|description " , "status $ type record " );
9787
+ $ this ->openapi ->set ("components|responses| $ operationType|description " , "$ operation status record " );
9788
9788
$ this ->openapi ->set ("components|responses| $ operationType|content|application/json|schema| \$ref " , "#/components/schemas/ $ operationType " );
9789
9789
}
9790
9790
}
0 commit comments