Registry / serialization / go-chassis-go-restful-swagger20

go-chassis-go-restful-swagger20

JSON →
library1.0.3gogounverified

Swagger implements the structures of the Swagger 1.2 specification for use with go-restful and Go-Chassis.

go get github.com/go-chassis/go-restful-swagger20
INSTALL
IMPORT
SIG · GO-CHASSIS-GO-REST
G
go-chassis-go-restful-swagger20
serializationgov1.0.3
harness data pending
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.

swagger
github.com/go-chassis/go-restful-swagger20

Creates an empty Swagger API declaration.

package main import ( "fmt" "github.com/go-chassis/go-restful-swagger20" ) func main() { api := swagger.ApiDeclaration{} fmt.Println(api) }
Debug
Known issues
gotchaThis package implements Swagger 1.2, not the more common OpenAPI 2.0 (Swagger 2.0).
fix
Use a different library if you need OpenAPI 2.0 or 3.0 support.
affects: all
Upgrade
Version history
1.0.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
go-chassis-go-restful-swagger20 — go get go-chassis-go-restful-swagger20 · libregistry