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:
| Framework | Module |
|---|---|
| Chi | go get github.com/oaswrap/spec/adapter/chiopenapi |
| Echo v4 | go get github.com/oaswrap/spec/adapter/echoopenapi |
| Echo v5 | go get github.com/oaswrap/spec/adapter/echov5openapi |
| Gin | go get github.com/oaswrap/spec/adapter/ginopenapi |
| Fiber v2 | go get github.com/oaswrap/spec/adapter/fiberopenapi |
| Fiber v3 | go get github.com/oaswrap/spec/adapter/fiberv3openapi |
| net/http | go get github.com/oaswrap/spec/adapter/httpopenapi |
| HTTPRouter | go get github.com/oaswrap/spec/adapter/httprouteropenapi |
| Gorilla Mux | go get github.com/oaswrap/spec/adapter/muxopenapi |
Each adapter is a separate Go module so you only pull in what you need.