fix format

This commit is contained in:
Chirag Aggarwal 2025-12-03 12:01:57 +05:30
parent 7aceae05d5
commit 91a1e4cfd0

View file

@ -616,7 +616,7 @@ class Swagger2 extends Format
$node['items']['x-enum-keys'] = $this->getRequestEnumKeys($namespace, $methodName, $name);
}
if ($validator->getType() === 'integer') {
$node['items']['format'] = 'int32';
$node['schema']['format'] = 'int32';
}
} else {
$node['type'] = $validator->getType();