📚 openapi - Awesome Go Library for Miscellaneous
OpenAPI 3.x parser.
🏷️ Miscellaneous
📂 These libraries were placed here because none of the other categories seemed to fit.
⭐ 11 stars
Detailed Description of openapi
OpenAPI
OpenAPI specification object model
Features
- Easy to integrate.
Installation
go get github.com/neotoolkit/openapi
Usage
package main
import (
"fmt"
"io/ioutil"
"log"
"github.com/neotoolkit/openapi"
)
func main() {
file, err := ioutil.ReadFile("openapi.yml")
if err != nil {
log.Fatalln(err)
}
oapi, err := openapi.Parse(file)
if err != nil {
log.Fatalln(err)
}
fmt.Println(oapi.OpenAPI)
}
Documentation
See these docs.