Note: should we ditch vendoring? Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com> |
||
|---|---|---|
| .. | ||
| .editorconfig | ||
| .gitignore | ||
| .golangci.yml | ||
| .travis.yml | ||
| CODE_OF_CONDUCT.md | ||
| doc.go | ||
| errors.go | ||
| LICENSE | ||
| loaders.go | ||
| options.go | ||
| README.md | ||
| spec.go | ||
Loads OAI specs

Loading of OAI v2 API specification documents from local or remote locations. Supports JSON and YAML documents.
Primary usage:
import (
"github.com/go-openapi/loads"
)
...
// loads a YAML spec from a http file
doc, err := loads.Spec(ts.URL)
...
// retrieves the object model for the API specification
spec := doc.Spec()
...
See also the provided examples.