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

# README

Loads OAI specs Build Status codecov

license GoDoc Go Report Card

Loading of OAI specification documents from local or remote locations. Supports JSON and YAML documents.

# Packages

No description provided by the author

# Functions

AddLoader for a document, executed before other previously set loaders.
Analyzed creates a new analyzed spec document for a root json.RawMessage.
Embedded returns a Document based on embedded specs.
JSONDoc loads a json document from either a file or a remote url.
JSONSpec loads a spec from a json document.
NewDocLoaderWithMatch builds a DocLoaderWithMatch to be used in load options.
Spec loads a new spec document from a local or remote path.
WithDocLoader sets a custom loader for loading specs.
WithDocLoaderMatches sets a chain of custom loaders for loading specs for different extension matches.

# Structs

DocLoaderWithMatch describes a loading function for a given extension match.
Document represents a swagger spec document.

# Type aliases

DocLoader represents a doc loader type.
DocMatcher represents a predicate to check if a loader matches.
LoaderOption allows to fine-tune the spec loader behavior.