Open tsmethurst opened 2 months ago
It appears that
lacks support for type.Alias
. I've experimented with various handlers but none resulted in success (the panic was gone, but swagger annotations on alias types are now broken):
case *types.Alias:
fmt.Printf("alias: %v -> %v\n", s.decl.Ident.Name, titpe.Rhs().String())
ret := s.buildFromType(titpe.Rhs(), tgt)
fmt.Printf("returning from alias: %v -> %v\n", s.decl.Ident.Name, ret) // always gives me nil
return ret
Problem statement
Hello hello, I can't seem to get go swagger generating a yaml output from code annotations on Go v1.23.0, where it was working fine in Go v1.22.x.
When running the following command in the GoToSocial repo with go bumped to v1.23.0:
go run github.com/go-swagger/go-swagger/cmd/swagger generate spec --scan-models --exclude-deps --output docs/api/swagger.yaml
The following panic occurs:
Thanks for reading! ^_^
Environment
swagger version: 0.31.0
go version: 1.23.0
OS: Linux amd64 (Ubuntu 22.04)