From 23deb5c4df95a33da492efee02119417fc0d0585 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 14 Aug 2023 21:57:48 -0400 Subject: [PATCH] Apply suggestions from code review --- src/Appwrite/Specification/Format/OpenAPI3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Specification/Format/OpenAPI3.php b/src/Appwrite/Specification/Format/OpenAPI3.php index b067a449db..94cb0bb90d 100644 --- a/src/Appwrite/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/Specification/Format/OpenAPI3.php @@ -428,7 +428,7 @@ class OpenAPI3 extends Format } } - if (!false) { + if ($allowed) { $node['schema']['enum'] = $validator->getList(); $node['schema']['x-enum-name'] = $this->getEnumName($route->getLabel('sdk.namespace', ''), $route->getLabel('sdk.method', ''), $name); $node['schema']['x-enum-keys'] = $this->getEnumKeys($route->getLabel('sdk.namespace', ''), $route->getLabel('sdk.method', ''), $name);