Add default title to choices
This commit is contained in:
parent
4b2ef44959
commit
6357c9dc61
|
|
@ -38,6 +38,12 @@ func sanitizeActionArgument(arg *ActionArgument) {
|
|||
arg.Title = arg.Name
|
||||
}
|
||||
|
||||
for idx, choice := range arg.Choices {
|
||||
if choice.Title == "" {
|
||||
arg.Choices[idx].Title = choice.Value
|
||||
}
|
||||
}
|
||||
|
||||
sanitizeActionArgumentNoType(arg)
|
||||
|
||||
// TODO Validate the default against the type checker, but this creates a
|
||||
|
|
|
|||
Loading…
Reference in New Issue