Skip to content

Commit b3b20f4

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

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ class OpenApiStatusBuilder
1010
private $operations = [
1111
'status' => [
1212
'ping' => 'get',
13-
],
13+
],
1414
];
1515

16-
1716
public function __construct(OpenApiDefinition $openapi)
1817
{
1918
$this->openapi = $openapi;
@@ -22,8 +21,6 @@ public function __construct(OpenApiDefinition $openapi)
2221
public function build() /*: void*/
2322
{
2423
$this->setPaths();
25-
$this->openapi->set("components|responses|boolSuccess|description", "boolean indicating success or failure");
26-
$this->openapi->set("components|responses|boolSuccess|content|application/json|schema|type", "boolean");
2724
$this->setComponentSchema();
2825
$this->setComponentResponse();
2926
foreach (array_keys($this->operations) as $index => $type) {
@@ -41,7 +38,7 @@ private function setPaths() /*: void*/
4138
$this->openapi->set("paths|$path|$method|operationId", "$operation" . "_" . "$type");
4239
$this->openapi->set("paths|$path|$method|description", "Request API '$operation' status");
4340
$this->openapi->set("paths|$path|$method|responses|200|\$ref", "#/components/responses/$operationType");
44-
41+
4542
}
4643
}
4744
}

0 commit comments

Comments
 (0)