From cd21f1410640568d026a5342609b902555fc679b Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Wed, 8 Jun 2022 17:01:36 +0800 Subject: [PATCH] fix: additional field type --- internal/driver/manage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/driver/manage.go b/internal/driver/manage.go index 510f401fe9e..4541fa1d8c3 100644 --- a/internal/driver/manage.go +++ b/internal/driver/manage.go @@ -82,7 +82,7 @@ func getAdditionalItems(t reflect.Type) []Item { } item := Item{ Name: tag.Get("json"), - Type: strings.ToLower(field.Name), + Type: strings.ToLower(field.Type.Name()), Default: tag.Get("default"), Values: tag.Get("values"), Required: tag.Get("required") == "true",