package openapi3
import "github.com/gohugoio/hugo/tpl/openapi/openapi3"
Package openapi3 provides functions for generating OpenAPI v3 (Swagger) documentation.
Index ¶
- type Namespace
- func New(deps *deps.Deps) *Namespace
- func (ns *Namespace) Unmarshal(r resource.UnmarshableResource) (*OpenAPIDocument, error)
- type OpenAPIDocument
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace provides template functions for the "openapi3".
func New ¶
New returns a new instance of the openapi3-namespaced template functions.
func (*Namespace) Unmarshal ¶
func (ns *Namespace) Unmarshal(r resource.UnmarshableResource) (*OpenAPIDocument, error)
Unmarshal unmarshals the given resource into an OpenAPI 3 document.
type OpenAPIDocument ¶
OpenAPIDocument represents an OpenAPI 3 document.
Source Files ¶
- Version
- v0.122.0
- Published
- Jan 26, 2024
- Platform
- darwin/amd64
- Imports
- 11 packages
- Last checked
- 1 hour ago –
Tools for package owners.