Skip to main content

Installation

Requirements

  • Go 1.21 or later

Install

go get github.com/oaswrap/spec

Install a Framework Adapter

If you want automatic integration with your web framework, install the corresponding adapter module:

FrameworkModule
Chigo get github.com/oaswrap/spec/adapter/chiopenapi
Echo v4go get github.com/oaswrap/spec/adapter/echoopenapi
Echo v5go get github.com/oaswrap/spec/adapter/echov5openapi
Gingo get github.com/oaswrap/spec/adapter/ginopenapi
Fiber v2go get github.com/oaswrap/spec/adapter/fiberopenapi
Fiber v3go get github.com/oaswrap/spec/adapter/fiberv3openapi
net/httpgo get github.com/oaswrap/spec/adapter/httpopenapi
HTTPRoutergo get github.com/oaswrap/spec/adapter/httprouteropenapi
Gorilla Muxgo get github.com/oaswrap/spec/adapter/muxopenapi

Each adapter is a separate Go module so you only pull in what you need.