{"modulePath":"github.com/ifc7/oapi-codegen","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package libopenapi\n\nPackage libopenapi loads OpenAPI documents with pb33f/libopenapi and converts them into the generator's model.\n\n## Functions\n\n```go\nfunc Convert(doc *v3.Document) *model.Document\n```\nConvert copies a libopenapi document into the generator's model.\n\nA schema reached through several $refs is one \\*model.Schema. The identity is the resolved schema's source node, because libopenapi builds a fresh high-level schema for each proxy.\n\n## Types\n\n```go\ntype Engine struct{}\n```\nEngine loads documents with libopenapi.\n\n```go\nfunc (Engine) Load(path string, opts engine.LoadOptions) (*model.Document, error)\n```\nLoad loads the document at path, a file path or an http(s) or file URL, applies any Overlay, and converts it.\n\n```go\nfunc (Engine) LoadData(raw []byte, specPath string, opts engine.LoadOptions) (*model.Document, error)\n```\nLoadData loads the document in raw as if it were the file at specPath, so relative references resolve against that path's directory. specPath may be empty, in which case they resolve against the working directory.\n\n","path":"github.com/ifc7/oapi-codegen/pkg/engine/libopenapi","name":"libopenapi","synopsis":"Package libopenapi loads OpenAPI documents with pb33f/libopenapi and converts them into the generator's model.","isRedistributable":true}
