openapiv3schemavalidator

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAPIV3Key

type OpenAPIV3Key string
const (
	RequiredKey             OpenAPIV3Key = "required"
	DefaultKey              OpenAPIV3Key = "default"
	PropertiesKey           OpenAPIV3Key = "properties"
	TypeKey                 OpenAPIV3Key = "type"
	AdditionalPropertiesKey OpenAPIV3Key = "additionalProperties"
	ItemsKey                OpenAPIV3Key = "items"
	PatternKey              OpenAPIV3Key = "pattern"
	MinLengthKey            OpenAPIV3Key = "minLength"
	MaxLengthKey            OpenAPIV3Key = "maxLength"
	MinimumKey              OpenAPIV3Key = "minimum"
	MaximumKey              OpenAPIV3Key = "maximum"
)

type OpenAPIV3SchemaValidator

type OpenAPIV3SchemaValidator struct {
	Schema map[string]interface{}
}

func (*OpenAPIV3SchemaValidator) ValidateFormat

func (validator *OpenAPIV3SchemaValidator) ValidateFormat(objectValues map[string]interface{}) (errs []error)

func (*OpenAPIV3SchemaValidator) ValidateRequiredFields

func (validator *OpenAPIV3SchemaValidator) ValidateRequiredFields(objectValues map[string]interface{}) (errs []error)

type OpenAPIV3Types

type OpenAPIV3Types string
const (
	ObjectType  OpenAPIV3Types = "object"
	NumberType  OpenAPIV3Types = "number"
	IntegerType OpenAPIV3Types = "integer"
	BooleanType OpenAPIV3Types = "boolean"
	ArrayType   OpenAPIV3Types = "array"
	StringType  OpenAPIV3Types = "string"
)

Jump to

Keyboard shortcuts

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