From 0dde06250cdb548d9118d2097e3d5cacd585cef5 Mon Sep 17 00:00:00 2001 From: choi kangsik Date: Wed, 3 Jan 2024 21:39:36 +0900 Subject: [PATCH] Update SwaggerGenerator.php --- src/Generators/SwaggerGenerator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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':