swagger example does not use go-restful/v3
bokunodev opened this issue · comments
bokunodev commented
swagger example does not use go-restful/v3
and go-restful-swagger12
is not compatible with go-restful/v3
cannot use absensiNext.Container.RegisteredWebServices() (value of type []*"github.com/emicklei/go-restful/v3".WebService) as []*"github.com/emicklei/go-restful".WebService value in struct literal
Ernest Micklei commented
@bokunodev you should look at https://github.com/emicklei/go-restful/tree/v3/examples/openapi instead.
The swagger example is there for those that are using the older non-v3 versions. Maybe I will delete it...
bokunodev commented
i see, thanks.
i just clicked on the link Code examples use v3. so i thought it was compatible with v3.
Ernest Micklei commented
good point, I will revist this