fix(goctl): dart gen user defined struct array (#1620)
This commit is contained in:
@@ -128,11 +128,10 @@ func specTypeToDart(tp spec.Type) (string, error) {
|
||||
}
|
||||
|
||||
s := getBaseType(valueType)
|
||||
if len(s) == 0 {
|
||||
return s, errors.New("unsupported primitive type " + tp.Name())
|
||||
if len(s) != 0 {
|
||||
return s, nil
|
||||
}
|
||||
|
||||
return s, nil
|
||||
return fmt.Sprintf("List<%s>", valueType), nil
|
||||
case spec.InterfaceType:
|
||||
return "Object", nil
|
||||
case spec.PointerType:
|
||||
|
||||
Reference in New Issue
Block a user