Skip to content

Commit 34c7ac9

Browse files
committed
Small fix for #192 and #192 to detect integer types
1 parent 71a62e9 commit 34c7ac9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,6 +2268,9 @@ protected function swagger($settings) {
22682268
$table_fields[$table['name']][$row[0]]->maxLength = $row[4];
22692269
if ($this->db->isNumericType($table_fields[$table['name']][$row[0]])) {
22702270
$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+
}
22712274
} else {
22722275
if ($this->db->isBinaryType($table_fields[$table['name']][$row[0]])) {
22732276
$table_fields[$table['name']][$row[0]]->format = 'byte';

0 commit comments

Comments
 (0)