diff --git a/signer/core/apitypes/types.go b/signer/core/apitypes/types.go index 546908402de9..47a8b3028642 100644 --- a/signer/core/apitypes/types.go +++ b/signer/core/apitypes/types.go @@ -216,20 +216,22 @@ func (t *Type) isArray() bool { // typeName returns the canonical name of the type. If the type is 'Person[]', then // this method returns 'Person' func (t *Type) typeName() string { - re := regexp.MustCompile(`\[\d*\]`) + // re := regexp.MustCompile(`\[\d*\]`) // print input string fmt.Println("\nInput string: ", t.Type) - if strings.Contains(t.Type, "[") { - replaced := re.ReplaceAllString(t.Type, "") - fmt.Println("\noutput string: ", replaced) - return replaced - } else { - fmt.Println("\nno changes required to output string") - } + return "test" + + // if strings.Contains(t.Type, "[") { + // replaced := re.ReplaceAllString(t.Type, "") + // fmt.Println("\noutput string: ", replaced) + // return replaced + // } else { + // fmt.Println("\nno changes required to output string") + // } - return t.Type + // return t.Type } type Types map[string][]Type