openapi

package
v0.59.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOpenAPIConfig

func CreateOpenAPIConfig(webServices []*restful.WebService) restfulspec.Config

func LoadOpenAPISpec

func LoadOpenAPISpec(webServices []*restful.WebService) *spec.Swagger

Types

type Validator

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

func CreateOpenAPIValidator

func CreateOpenAPIValidator(webServices []*restful.WebService) *Validator

func (*Validator) Validate

func (v *Validator) Validate(gvk schema.GroupVersionKind, obj map[string]interface{}) []error

func (*Validator) ValidateSpec

func (v *Validator) ValidateSpec(gvk schema.GroupVersionKind, obj map[string]interface{}) []error

func (*Validator) ValidateStatus

func (v *Validator) ValidateStatus(gvk schema.GroupVersionKind, obj map[string]interface{}) []error

Jump to

Keyboard shortcuts

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