openapi

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtraComponents added in v0.23.0

func ExtraComponents(components ...any) func(*Installer)

ExtraComponents provides additional components to include schemas for.

func Handler

func Handler(api *openapi3.T, enableCors bool) http.HandlerFunc

func Surrogates added in v0.24.0

func Surrogates(surrogates map[reflect.Type]any) func(*Installer)

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

Installer configures openapi support.

func Feature

func Feature(config ...func(installer *Installer)) *Installer

Feature configures http server support

func (*Installer) AfterInstall

func (i *Installer) AfterInstall(
	setup *miruken.SetupBuilder,
	handler miruken.Handler,
) error

func (*Installer) BindingCreated

func (i *Installer) BindingCreated(
	policy miruken.Policy,
	descriptor *miruken.HandlerDescriptor,
	binding miruken.Binding,
)

func (*Installer) DependsOn

func (i *Installer) DependsOn() []miruken.Feature

func (*Installer) DescriptorCreated

func (i *Installer) DescriptorCreated(
	_ *miruken.HandlerDescriptor,
)

func (*Installer) Install

func (i *Installer) Install(setup *miruken.SetupBuilder) error

func (*Installer) Merge added in v0.23.0

func (i *Installer) Merge(api *openapi3.T)

type ValidationFailure added in v0.23.0

type ValidationFailure struct {
	PropertyName string
	Errors       []string
	Nested       []ValidationFailure
}

ValidationFailure models a single property failure.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL