openapi-generator-go
openapi-generator-go copied to clipboard
go install fails with too many errors
Trying to use this project, but I can't even install it:
go install github.com/contiamo/openapi-generator-go/v2
Gives too many errors.
I am on Mac OS X with Golang 1.23
go install github.com/contiamo/openapi-generator-go/v2
# github.com/contiamo/openapi-generator-go/v2/pkg/generators/models
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/generate.go:94:23: invalid argument: g.spec.Paths (variable of type *openapi3.Paths) for built-in len
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/generate.go:98:30: cannot range over g.spec.Paths (variable of type *openapi3.Paths)
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/generate.go:236:21: invalid operation: s.Value.Type == "array" (mismatched types *openapi3.Types and untyped string)
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/go_type_from_ref.go:26:26: cannot use "object" (untyped string constant) as *openapi3.Types value in assignment
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/go_type_from_ref.go:33:44: invalid operation: propertyType != "array" (mismatched types *openapi3.Types and untyped string)
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/go_type_from_ref.go:34:18: cannot use "ref" (untyped string constant) as *openapi3.Types value in assignment
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/go_type_from_ref.go:38:7: cannot convert "object" (untyped string constant) to type *openapi3.Types
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/go_type_from_ref.go:39:18: cannot use goTypeForObject(schemaRef) (value of type string) as *openapi3.Types value in assignment
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/go_type_from_ref.go:41:7: cannot convert "string" (untyped string constant) to type *openapi3.Types
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/go_type_from_ref.go:43:19: cannot use "time.Time" (untyped string constant) as *openapi3.Types value in assignment
../../../../pkg/mod/github.com/contiamo/openapi-generator-go/[email protected]/pkg/generators/models/go_type_from_ref.go:43:19: too many errors