Registry /
web-framework / emicklei-go-restful-openapi-v2
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
openapi
✓ github.com/emicklei/go-restful-openapi/v2
Build an OpenAPI 2.0 specification from a go-restful web service.
package main
import (
"fmt"
restful "github.com/emicklei/go-restful/v3"
"github.com/emicklei/go-restful-openapi/v2"
)
func main() {
ws := new(restful.WebService)
config := openapi.Config{WebServices: []*restful.WebService{ws}}
doc, _ := openapi.BuildConfig(config)
fmt.Println(doc)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.12.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.