From ebe3dc0dbdbf4e3302160125191a4eb1ba426a4b Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 10 Feb 2022 16:38:16 +0545 Subject: [PATCH] dependency updates --- src/Appwrite/Specification/Format/Swagger2.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Appwrite/Specification/Format/Swagger2.php b/src/Appwrite/Specification/Format/Swagger2.php index 21ea7ee2b6..a2a09e14e8 100644 --- a/src/Appwrite/Specification/Format/Swagger2.php +++ b/src/Appwrite/Specification/Format/Swagger2.php @@ -264,6 +264,9 @@ class Swagger2 extends Format break; case 'Utopia\Database\Validator\UID': case 'Appwrite\Utopia\Database\Validator\CustomId': + if($route->getLabel('sdk.methodType', '') === 'upload') { + $node['x-upload-id'] = true; + } $node['type'] = $validator->getType(); $node['x-example'] = '['.\strtoupper(Template::fromCamelCaseToSnake($node['name'])).']'; break;