Categorygithub.com/go-openapi/loads
repositorypackage
0.23.1
Repository: https://github.com/go-openapi/loads.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Loads OAI specs Build Status codecov

license GoDoc Go Report Card

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.