We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a62e9 commit 34c7ac9Copy full SHA for 34c7ac9
api.php
@@ -2268,6 +2268,9 @@ protected function swagger($settings) {
2268
$table_fields[$table['name']][$row[0]]->maxLength = $row[4];
2269
if ($this->db->isNumericType($table_fields[$table['name']][$row[0]])) {
2270
$table_fields[$table['name']][$row[0]]->type = 'number';
2271
+ if (strpos(strtolower($table_fields[$table['name']][$row[0]]->{'x-dbtype'}),'int')!==false) {
2272
+ $table_fields[$table['name']][$row[0]]->type = 'integer';
2273
+ }
2274
} else {
2275
if ($this->db->isBinaryType($table_fields[$table['name']][$row[0]])) {
2276
$table_fields[$table['name']][$row[0]]->format = 'byte';
0 commit comments