This commit is contained in:
ArnabChatterjee20k committed 2026-05-27 13:36:51 +05:30
1 parent 5cff5807fe
commit 979673bca4
1 file changed
+1 -3
@@ -761,9 +761,7 @@ 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;
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']) {