mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
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:
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']) {
|
||||
|
||||
Reference in new issue
Block a user