Skip to content

Commit 63832b2

Browse files
committed
update: remove inherited deprecations!
1 parent 3130f9a commit 63832b2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Spec/Swagger2.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,15 @@ private function handleAdditionalMethods($methodName, $pathName, $method, $addit
349349
$duplicatedMethod['x-appwrite']['method'] = $additionalMethod['name'];
350350
$duplicatedMethod['x-appwrite']['auth'] = $additionalMethod['auth'] ?? [];
351351

352+
if (isset($additionalMethod['deprecated'])) {
353+
$duplicatedMethod['deprecated'] = $additionalMethod['deprecated'];
354+
$duplicatedMethod['x-appwrite']['deprecated'] = $additionalMethod['deprecated'];
355+
} else {
356+
// remove inherited deprecations!
357+
unset($duplicatedMethod['deprecated']);
358+
unset($duplicatedMethod['x-appwrite']['deprecated']);
359+
}
360+
352361
// Update Response
353362
$responses = $additionalMethod['responses'];
354363
$convertedResponse = [];

0 commit comments

Comments
 (0)