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
+2
@@ -761,8 +761,10 @@ class Swagger2 extends Format
|
|||||||
/// If the enum flag is Set, add the enum values to the body
|
/// If the enum flag is Set, add the enum values to the body
|
||||||
$body['schema']['properties'][$name]['enum'] = $node['enum'];
|
$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-name'] = $node['x-enum-name'] ?? null;
|
||||||
|
if (isset($node['x-enum-keys'])) {
|
||||||
$body['schema']['properties'][$name]['x-enum-keys'] = $node['x-enum-keys'];
|
$body['schema']['properties'][$name]['x-enum-keys'] = $node['x-enum-keys'];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($parameter['nullable']) {
|
if ($parameter['nullable']) {
|
||||||
$body['schema']['properties'][$name]['x-nullable'] = true;
|
$body['schema']['properties'][$name]['x-nullable'] = true;
|
||||||
|
|||||||
Reference in new issue
Block a user