diff --git a/src/Generators/SwaggerGenerator.php b/src/Generators/SwaggerGenerator.php index 57fbdb3ef..6c05332c3 100755 --- a/src/Generators/SwaggerGenerator.php +++ b/src/Generators/SwaggerGenerator.php @@ -31,10 +31,11 @@ public static function generateTypes(array $inputFields): array return $fieldTypes; } - public static function getFieldType($type): array + public static function getFieldType($data): array { $fieldType = null; $fieldFormat = null; + $type = explode(",",$data)[0]; switch (strtolower($type)) { case 'increments': case 'integer':