msg

package
v5.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-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 AdditionalItems

type AdditionalItems struct {
	Got  int // num items we got
	Want int // num items allowed
}

AdditionalItems captures error fields for 'additionalItems'.

func (AdditionalItems) String

func (d AdditionalItems) String() string

type AdditionalProperties

type AdditionalProperties struct {
	Got []string // additional properties we got
}

AdditionalProperties captures error fields for 'additionalProperties'.

func (AdditionalProperties) String

func (d AdditionalProperties) String() string

type AllOf

type AllOf struct {
	Got []int // subschema indexes that did not match
}

AllOf captures error fields for 'allOf'.

func (AllOf) String

func (d AllOf) String() string

type AnyOf

type AnyOf struct{}

AnyOf captures error fields for 'anyOf'.

func (AnyOf) String

func (AnyOf) String() string

type Const

type Const struct {
	Got  interface{} // value we got
	Want interface{} // value allowed
}

Const captures error fields for 'const'.

func (Const) String

func (d Const) String() string

type ContentEncoding

type ContentEncoding struct {
	Got  string // value we got
	Want string // content encoding of the value allowed
}

ContentEncoding captures error fields for 'contentEncoding'.

func (ContentEncoding) String

func (d ContentEncoding) String() string

type ContentMediaType

type ContentMediaType struct {
	Got  []byte // decoded value we got
	Want string // media type of value allowed
}

ContentMediaType captures error fields for 'contentMediaType'.

func (ContentMediaType) String

func (d ContentMediaType) String() string

type ContentSchema

type ContentSchema struct {
	Got []byte // decoded value we got
}

ContentSchema captures error fields for 'contentSchema'.

func (ContentSchema) String

func (ContentSchema) String() string

type DependentRequired

type DependentRequired struct {
	Want string // property that is required
	Got  string // property that requires Want
}

DependentRequired captures error fields for 'dependentRequired', 'dependencies'.

func (DependentRequired) String

func (d DependentRequired) String() string

type Else

type Else struct{}

Else captures error fields for 'else'.

func (Else) String

func (Else) String() string

type Empty

type Empty struct{}

Empty captures error fields for empty message.

func (Empty) String

func (Empty) String() string

type Enum

type Enum struct {
	Got  interface{}   // value we got
	Want []interface{} // list of values allowed
}

Enum captures error fields for 'enum'.

func (Enum) String

func (d Enum) String() string

type ExclusiveMaximum

type ExclusiveMaximum struct {
	Got  interface{} // number we got
	Want *big.Rat    // exclusive max number allowed
}

ExclusiveMaximum captures error fields for 'exclusiveMaximum'.

func (ExclusiveMaximum) String

func (d ExclusiveMaximum) String() string

type ExclusiveMinimum

type ExclusiveMinimum struct {
	Got  interface{} // number we got
	Want *big.Rat    // exclusive min number allowed
}

ExclusiveMinimum captures error fields for 'exclusiveMinimum'.

func (ExclusiveMinimum) String

func (d ExclusiveMinimum) String() string

type False

type False struct{}

False captures error fields for false boolean schema.

func (False) String

func (False) String() string

type Format

type Format struct {
	Got  interface{} // the value we got
	Want string      // format that is allowed
}

Format captures error fields for 'format'.

func (Format) String

func (d Format) String() string

type MaxContains

type MaxContains struct {
	Got  []int // item indexes matching contains schema
	Want int   // max items allowed matching contains schema
}

MaxContains captures error fields for 'maxContains'.

func (MaxContains) String

func (d MaxContains) String() string

type MaxItems

type MaxItems struct {
	Got  int // num items we got
	Want int // max items allowed
}

MaxItems captures error fields for 'maxItems'.

func (MaxItems) String

func (d MaxItems) String() string

type MaxLength

type MaxLength struct {
	Got  int // length of string we got
	Want int // max length of string allowed
}

MaxLength captures error fields for 'maxLength'.

func (MaxLength) String

func (d MaxLength) String() string

type MaxProperties

type MaxProperties struct {
	Got  int // num properties we got
	Want int // max properties allowed
}

MaxProperties captures error fields for 'maxProperties'.

func (MaxProperties) String

func (d MaxProperties) String() string

type Maximum

type Maximum struct {
	Got  interface{} // number we got
	Want *big.Rat    // max number allowed
}

Maximum captures error fields for 'maximum'.

func (Maximum) String

func (d Maximum) String() string

type MinContains

type MinContains struct {
	Got  []int // item indexes matching contains schema
	Want int   // min items allowed matching contains schema
}

MinContains captures error fields for 'minContains'.

func (MinContains) String

func (d MinContains) String() string

type MinItems

type MinItems struct {
	Got  int // num items we got
	Want int // min items allowed
}

MinItems captures error fields for 'minItems'.

func (MinItems) String

func (d MinItems) String() string

type MinLength

type MinLength struct {
	Got  int // length of string we got
	Want int // min length of string allowed
}

MinLength captures error fields for 'minLength'.

func (MinLength) String

func (d MinLength) String() string

type MinProperties

type MinProperties struct {
	Got  int // num properties we got
	Want int // min properties allowed
}

MinProperties captures error fields for 'minProperties'.

func (MinProperties) String

func (d MinProperties) String() string

type Minimum

type Minimum struct {
	Got  interface{} // number we got
	Want *big.Rat    // min number allowed
}

Minimum captures error fields for 'minimum'.

func (Minimum) String

func (d Minimum) String() string

type MultipleOf

type MultipleOf struct {
	Got  interface{} // number we got
	Want *big.Rat    // only multiple of this allowed
}

MultipleOf captures error fields for 'multipleOf'.

func (MultipleOf) String

func (d MultipleOf) String() string

type Not

type Not struct{}

Not captures error fields for 'not'.

func (Not) String

func (Not) String() string

type OneOf

type OneOf struct {
	Got []int // subschema indexes that matched
}

OneOf captures error fields for 'oneOf'.

func (OneOf) String

func (d OneOf) String() string

type Pattern

type Pattern struct {
	Got  string // string value we got
	Want string // regex that should match
}

Pattern captures error fields for 'pattern'.

func (Pattern) String

func (d Pattern) String() string

type Required

type Required struct {
	Want []string // properties that are missing
}

Required captures error fields for 'required'.

func (Required) String

func (d Required) String() string

type Schema

type Schema struct {
	Want string // url of schema that did not match
}

Schema captures error fields for top schema, '$ref', '$recursiveRef', '$dynamicRef'.

func (Schema) String

func (d Schema) String() string

type Then

type Then struct{}

Then captures error fields for 'then'.

func (Then) String

func (Then) String() string

type Type

type Type struct {
	Got  string   // type of the value we got
	Want []string // types that are allowed
}

Type captures error fields for 'type'.

func (Type) String

func (d Type) String() string

type UniqueItems

type UniqueItems struct {
	Got [2]int // item indexes that are not unique
}

UniqueItems captures error fields for 'uniqueItems'.

func (UniqueItems) String

func (d UniqueItems) String() string

Jump to

Keyboard shortcuts

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