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 1c899ce commit ea61344Copy full SHA for ea61344
api.php
@@ -2432,7 +2432,7 @@ protected function swagger($settings) {
2432
}
2433
echo ',"x-dbtype": '.json_encode($action['fields'][$field]->{'x-dbtype'});
2434
echo ',"x-nullable": '.json_encode($action['fields'][$field]->{'x-nullable'});
2435
- if (isset($action['fields'][$field]->maxLength)) {
+ if (isset($action['fields'][$field]->maxLength) && $action['fields'][$field]->maxLength>0) {
2436
echo ',"maxLength": '.json_encode($action['fields'][$field]->maxLength);
2437
2438
if (isset($action['fields'][$field]->default)) {
0 commit comments