Skip to content

Commit

Permalink
fix: additional field type
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jun 8, 2022
1 parent 65fba79 commit cd21f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/driver/manage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cd21f14

Please sign in to comment.