Skip to content

Commit 3f3afb0

Browse files
committed
update: update snake_case to camelCase
Signed-off-by: Jay <jaykumar20march@gmail.com>
1 parent 85fa20d commit 3f3afb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Spec/Swagger2.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public function getDefinitions()
312312
"name" => $key,
313313
"properties" => $schema['properties'] ?? [],
314314
"description" => $schema['description'] ?? [],
315-
"error_types" => $schema['x-appwrite']['types'] ?? [],
315+
"error_types" => $schema['x-appwrite']['types'] ?? null,
316316
"required" => $schema['required'] ?? [],
317317
"additionalProperties" => $schema['additionalProperties'] ?? []
318318
];
@@ -338,17 +338,17 @@ public function getDefinitions()
338338
}
339339
}
340340
}
341-
if (isset($sch['error_types'])) {
341+
if (isset($sch['errorTypes'])) {
342342
$types = [];
343-
foreach ($sch['error_types'] as $type) {
343+
foreach ($sch['errorTypes'] as $type) {
344344

345345
$types[] = [
346346
'code' => $type['code'],
347347
'type' => $type['type'],
348348
'description' => $type['description']
349349
];
350350
}
351-
$sch['error_types'] = $types;
351+
$sch['errorTypes'] = $types;
352352
}
353353
$list[$key] = $sch;
354354
}

0 commit comments

Comments
 (0)