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.