Update src/Appwrite/SDK/Specification/Format/Swagger2.php

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Damodar Lohaniandgreptile-apps[bot] authored and GitHub committed 2026-05-27 16:56:55 +05:45
1 parent ac1623f35e
commit cb6e502eca
1 file changed
+3 -1
@@ -761,7 +761,9 @@ class Swagger2 extends Format
/// If the enum flag is Set, add the enum values to the body
$body['schema']['properties'][$name]['enum'] = $node['enum'];
$body['schema']['properties'][$name]['x-enum-name'] = $node['x-enum-name'] ?? null;
$body['schema']['properties'][$name]['x-enum-keys'] = $node['x-enum-keys'];
if (isset($node['x-enum-keys'])) {
$body['schema']['properties'][$name]['x-enum-keys'] = $node['x-enum-keys'];
}
}
if ($parameter['nullable']) {