Documentation ¶
Index ¶
- type AdditionalItems
- type AdditionalProperties
- type AllOf
- type AnyOf
- type Const
- type ContentEncoding
- type ContentMediaType
- type ContentSchema
- type DependentRequired
- type Else
- type Empty
- type Enum
- type ExclusiveMaximum
- type ExclusiveMinimum
- type False
- type Format
- type MaxContains
- type MaxItems
- type MaxLength
- type MaxProperties
- type Maximum
- type MinContains
- type MinItems
- type MinLength
- type MinProperties
- type Minimum
- type MultipleOf
- type Not
- type OneOf
- type Pattern
- type Required
- type Schema
- type Then
- type Type
- type UniqueItems
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalItems ¶
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'.
type Const ¶
type Const struct { Got interface{} // value we got Want interface{} // value allowed }
Const captures error fields for 'const'.
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 Enum ¶
type Enum struct { Got interface{} // value we got Want []interface{} // list of values allowed }
Enum captures error fields for 'enum'.
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 Format ¶
type Format struct { Got interface{} // the value we got Want string // format that is allowed }
Format captures error fields for 'format'.
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 MaxLength ¶
type MaxLength struct { Got int // length of string we got Want int // max length of string allowed }
MaxLength captures error fields for 'maxLength'.
type MaxProperties ¶
MaxProperties captures error fields for 'maxProperties'.
func (MaxProperties) String ¶
func (d MaxProperties) 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 MinLength ¶
type MinLength struct { Got int // length of string we got Want int // min length of string allowed }
MinLength captures error fields for 'minLength'.
type MinProperties ¶
MinProperties captures error fields for 'minProperties'.
func (MinProperties) String ¶
func (d MinProperties) 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 OneOf ¶
type OneOf struct {
Got []int // subschema indexes that matched
}
OneOf captures error fields for 'oneOf'.
type Required ¶
type Required struct {
Want []string // properties that are missing
}
Required captures error fields for 'required'.
type Schema ¶
type Schema struct {
Want string // url of schema that did not match
}
Schema captures error fields for top schema, '$ref', '$recursiveRef', '$dynamicRef'.
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