From 98df1650508911a4cd71503490c9a8768ec5af08 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Wed, 19 May 2021 18:29:06 +0300 Subject: [PATCH] Updated platform types --- src/Appwrite/Specification/Format/OpenAPI3.php | 4 ++++ src/Appwrite/Specification/Format/Swagger2.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Appwrite/Specification/Format/OpenAPI3.php b/src/Appwrite/Specification/Format/OpenAPI3.php index ec1f02dcc..b5724a0ee 100644 --- a/src/Appwrite/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/Specification/Format/OpenAPI3.php @@ -122,6 +122,10 @@ class OpenAPI3 extends Format break; } } + + if(empty($routeSecurity)) { + $sdkPlatofrms[] = APP_PLATFORM_CLIENT; + } $temp = [ 'summary' => $route->getDesc(), diff --git a/src/Appwrite/Specification/Format/Swagger2.php b/src/Appwrite/Specification/Format/Swagger2.php index 9db6d2baf..c63be0a70 100644 --- a/src/Appwrite/Specification/Format/Swagger2.php +++ b/src/Appwrite/Specification/Format/Swagger2.php @@ -121,6 +121,10 @@ class Swagger2 extends Format break; } } + + if(empty($routeSecurity)) { + $sdkPlatofrms[] = APP_PLATFORM_CLIENT; + } $temp = [ 'summary' => $route->getDesc(),