Skip to content

Commit 8d44039

Browse files
committed
fix for #755
1 parent 167df45 commit 8d44039

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

api.include.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9747,7 +9747,7 @@ private function setPaths() /*: void*/
97479747
$operationType = $operation . ucfirst($type);
97489748
$this->openapi->set("paths|$path|$method|tags|0", "$type");
97499749
$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");
97519751
$this->openapi->set("paths|$path|$method|responses|200|\$ref", "#/components/responses/$operationType");
97529752

97539753
}
@@ -9761,7 +9761,7 @@ private function setComponentSchema() /*: void*/
97619761
$operationType = $operation . ucfirst($type);
97629762
$prefix = "components|schemas|$operationType";
97639763
$this->openapi->set("$prefix|type", "object");
9764-
switch ($type) {
9764+
switch ($operation) {
97659765
case 'ping':
97669766
$this->openapi->set("$prefix|required", ['db', 'cache']);
97679767
$this->openapi->set("$prefix|properties|db|type", 'integer');
@@ -9784,7 +9784,7 @@ private function setComponentResponse() /*: void*/
97849784
foreach ($this->operations as $type => $operationPair) {
97859785
foreach ($operationPair as $operation => $method) {
97869786
$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");
97889788
$this->openapi->set("components|responses|$operationType|content|application/json|schema|\$ref", "#/components/schemas/$operationType");
97899789
}
97909790
}

api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9747,7 +9747,7 @@ private function setPaths() /*: void*/
97479747
$operationType = $operation . ucfirst($type);
97489748
$this->openapi->set("paths|$path|$method|tags|0", "$type");
97499749
$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");
97519751
$this->openapi->set("paths|$path|$method|responses|200|\$ref", "#/components/responses/$operationType");
97529752

97539753
}
@@ -9761,7 +9761,7 @@ private function setComponentSchema() /*: void*/
97619761
$operationType = $operation . ucfirst($type);
97629762
$prefix = "components|schemas|$operationType";
97639763
$this->openapi->set("$prefix|type", "object");
9764-
switch ($type) {
9764+
switch ($operation) {
97659765
case 'ping':
97669766
$this->openapi->set("$prefix|required", ['db', 'cache']);
97679767
$this->openapi->set("$prefix|properties|db|type", 'integer');
@@ -9784,7 +9784,7 @@ private function setComponentResponse() /*: void*/
97849784
foreach ($this->operations as $type => $operationPair) {
97859785
foreach ($operationPair as $operation => $method) {
97869786
$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");
97889788
$this->openapi->set("components|responses|$operationType|content|application/json|schema|\$ref", "#/components/schemas/$operationType");
97899789
}
97909790
}

0 commit comments

Comments
 (0)