Skip to content

Commit d79a5d0

Browse files
committed
remove service params
1 parent 116e0c5 commit d79a5d0

File tree

2 files changed

+28
-43
lines changed

2 files changed

+28
-43
lines changed

composer.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Spec/Swagger2.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66

77
class Swagger2 extends Spec
88
{
9-
/**
10-
* @var array
11-
*/
12-
// private array $serviceParams = [];
13-
149
/**
1510
* @return string
1611
*/
@@ -112,7 +107,6 @@ public function getServices()
112107
$list[$tag] = [
113108
'name' => $tag,
114109
'methods' => $methods,
115-
// 'globalParams' => $this->serviceParams[$tag] ?? [],
116110
];
117111
}
118112
}
@@ -138,7 +132,6 @@ public function getServices()
138132
public function getMethods($service)
139133
{
140134
$list = [];
141-
// $serviceParams= [];
142135
$security = $this->getAttribute('securityDefinitions', []);
143136
$paths = $this->getAttribute('paths', []);
144137

@@ -210,7 +203,6 @@ public function getMethods($service)
210203
'default' => $parameter['default'] ?? null,
211204
'example' => $parameter['x-example'] ?? null,
212205
'isUploadID' => $parameter['x-upload-id'] ?? false,
213-
// 'isGlobal' => $parameter['x-global'] ?? false,
214206
'array' => [
215207
'type' => $parameter['items']['type'] ?? '',
216208
],
@@ -222,10 +214,6 @@ public function getMethods($service)
222214

223215
$param['default'] = (is_array($param['default'])) ? json_encode($param['default']) : $param['default'];
224216

225-
// if(($parameter['x-global'] ?? false)) {
226-
// $serviceParams[$param['name']] = $param;
227-
// }
228-
229217
switch ($parameter['in']) {
230218
case 'header':
231219
$output['parameters']['header'][] = $param;
@@ -250,7 +238,6 @@ public function getMethods($service)
250238
$param['required'] = (in_array($key, $bodyRequired));
251239
$param['default'] = $value['default'] ?? null;
252240
$param['example'] = $value['x-example'] ?? null;
253-
// $param['isGlobal'] = $value['x-global'] ?? false;
254241
$param['isUploadID'] = $value['x-upload-id'] ?? false;
255242
$param['array'] = [
256243
'type' => $value['items']['type'] ?? '',
@@ -282,8 +269,6 @@ public function getMethods($service)
282269
}
283270
}
284271

285-
// $this->serviceParams[$service] = $serviceParams;
286-
287272
return $list;
288273
}
289274

0 commit comments

Comments
 (0)