Skip to content

Commit 5cfdace

Browse files
committed
fix for #755
1 parent b3b20f4 commit 5cfdace

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

api.include.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9708,7 +9708,7 @@ class OpenApiStatusBuilder
97089708
private $operations = [
97099709
'status' => [
97109710
'ping' => 'get',
9711-
],
9711+
],
97129712
];
97139713

97149714
public function __construct(OpenApiDefinition $openapi)
@@ -9719,8 +9719,6 @@ public function __construct(OpenApiDefinition $openapi)
97199719
public function build() /*: void*/
97209720
{
97219721
$this->setPaths();
9722-
$this->openapi->set("components|responses|boolSuccess|description", "boolean indicating success or failure");
9723-
$this->openapi->set("components|responses|boolSuccess|content|application/json|schema|type", "boolean");
97249722
$this->setComponentSchema();
97259723
$this->setComponentResponse();
97269724
foreach (array_keys($this->operations) as $index => $type) {
@@ -9738,7 +9736,7 @@ private function setPaths() /*: void*/
97389736
$this->openapi->set("paths|$path|$method|operationId", "$operation" . "_" . "$type");
97399737
$this->openapi->set("paths|$path|$method|description", "Request API '$operation' status");
97409738
$this->openapi->set("paths|$path|$method|responses|200|\$ref", "#/components/responses/$operationType");
9741-
9739+
97429740
}
97439741
}
97449742
}

api.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9708,7 +9708,7 @@ class OpenApiStatusBuilder
97089708
private $operations = [
97099709
'status' => [
97109710
'ping' => 'get',
9711-
],
9711+
],
97129712
];
97139713

97149714
public function __construct(OpenApiDefinition $openapi)
@@ -9719,8 +9719,6 @@ public function __construct(OpenApiDefinition $openapi)
97199719
public function build() /*: void*/
97209720
{
97219721
$this->setPaths();
9722-
$this->openapi->set("components|responses|boolSuccess|description", "boolean indicating success or failure");
9723-
$this->openapi->set("components|responses|boolSuccess|content|application/json|schema|type", "boolean");
97249722
$this->setComponentSchema();
97259723
$this->setComponentResponse();
97269724
foreach (array_keys($this->operations) as $index => $type) {
@@ -9738,7 +9736,7 @@ private function setPaths() /*: void*/
97389736
$this->openapi->set("paths|$path|$method|operationId", "$operation" . "_" . "$type");
97399737
$this->openapi->set("paths|$path|$method|description", "Request API '$operation' status");
97409738
$this->openapi->set("paths|$path|$method|responses|200|\$ref", "#/components/responses/$operationType");
9741-
9739+
97429740
}
97439741
}
97449742
}

0 commit comments

Comments
 (0)