File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/Tqdev/PhpCrudApi/OpenApi Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,9 @@ class OpenApiStatusBuilder
10
10
private $ operations = [
11
11
'status ' => [
12
12
'ping ' => 'get ' ,
13
- ],
13
+ ],
14
14
];
15
15
16
-
17
16
public function __construct (OpenApiDefinition $ openapi )
18
17
{
19
18
$ this ->openapi = $ openapi ;
@@ -22,8 +21,6 @@ public function __construct(OpenApiDefinition $openapi)
22
21
public function build () /*: void*/
23
22
{
24
23
$ 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 " );
27
24
$ this ->setComponentSchema ();
28
25
$ this ->setComponentResponse ();
29
26
foreach (array_keys ($ this ->operations ) as $ index => $ type ) {
@@ -41,7 +38,7 @@ private function setPaths() /*: void*/
41
38
$ this ->openapi ->set ("paths| $ path| $ method|operationId " , "$ operation " . "_ " . "$ type " );
42
39
$ this ->openapi ->set ("paths| $ path| $ method|description " , "Request API ' $ operation' status " );
43
40
$ this ->openapi ->set ("paths| $ path| $ method|responses|200| \$ref " , "#/components/responses/ $ operationType " );
44
-
41
+
45
42
}
46
43
}
47
44
}
You can’t perform that action at this time.
0 commit comments