kind

package
v6.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 4 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 {
	Count int
}

func (*AdditionalItems) KeywordPath

func (*AdditionalItems) KeywordPath() []string

func (*AdditionalItems) LocalizedString

func (k *AdditionalItems) LocalizedString(p *message.Printer) string

type AdditionalProperties

type AdditionalProperties struct {
	Properties []string
}

func (*AdditionalProperties) KeywordPath

func (*AdditionalProperties) KeywordPath() []string

func (*AdditionalProperties) LocalizedString

func (k *AdditionalProperties) LocalizedString(p *message.Printer) string

type AllOf

type AllOf struct{}

func (*AllOf) KeywordPath

func (*AllOf) KeywordPath() []string

func (*AllOf) LocalizedString

func (*AllOf) LocalizedString(p *message.Printer) string

type AnyOf

type AnyOf struct{}

func (*AnyOf) KeywordPath

func (*AnyOf) KeywordPath() []string

func (*AnyOf) LocalizedString

func (*AnyOf) LocalizedString(p *message.Printer) string

type Const

type Const struct {
	Got  any
	Want any
}

func (*Const) KeywordPath

func (*Const) KeywordPath() []string

func (*Const) LocalizedString

func (k *Const) LocalizedString(p *message.Printer) string

type Contains

type Contains struct{}

func (*Contains) KeywordPath

func (*Contains) KeywordPath() []string

func (*Contains) LocalizedString

func (*Contains) LocalizedString(p *message.Printer) string

type ContentEncoding

type ContentEncoding struct {
	Want string
	Err  error
}

func (*ContentEncoding) KeywordPath

func (*ContentEncoding) KeywordPath() []string

func (*ContentEncoding) LocalizedString

func (k *ContentEncoding) LocalizedString(p *message.Printer) string

type ContentMediaType

type ContentMediaType struct {
	Got  []byte
	Want string
	Err  error
}

func (*ContentMediaType) KeywordPath

func (*ContentMediaType) KeywordPath() []string

func (*ContentMediaType) LocalizedString

func (k *ContentMediaType) LocalizedString(p *message.Printer) string

type ContentSchema

type ContentSchema struct{}

func (*ContentSchema) KeywordPath

func (*ContentSchema) KeywordPath() []string

func (*ContentSchema) LocalizedString

func (*ContentSchema) LocalizedString(p *message.Printer) string

type Dependency

type Dependency struct {
	Prop    string   // dependency of prop that failed
	Missing []string // missing props
}

func (*Dependency) KeywordPath

func (k *Dependency) KeywordPath() []string

func (*Dependency) LocalizedString

func (k *Dependency) LocalizedString(p *message.Printer) string

type DependentRequired

type DependentRequired struct {
	Prop    string   // dependency of prop that failed
	Missing []string // missing props
}

func (*DependentRequired) KeywordPath

func (k *DependentRequired) KeywordPath() []string

func (*DependentRequired) LocalizedString

func (k *DependentRequired) LocalizedString(p *message.Printer) string

type Enum

type Enum struct {
	Got  any
	Want []any
}

func (*Enum) KeywordPath

func (*Enum) KeywordPath() []string

KeywordPath implements jsonschema.ErrorKind.

func (*Enum) LocalizedString

func (k *Enum) LocalizedString(p *message.Printer) string

type ExclusiveMaximum

type ExclusiveMaximum struct {
	Got  *big.Rat
	Want *big.Rat
}

func (*ExclusiveMaximum) KeywordPath

func (*ExclusiveMaximum) KeywordPath() []string

func (*ExclusiveMaximum) LocalizedString

func (k *ExclusiveMaximum) LocalizedString(p *message.Printer) string

type ExclusiveMinimum

type ExclusiveMinimum struct {
	Got  *big.Rat
	Want *big.Rat
}

func (*ExclusiveMinimum) KeywordPath

func (*ExclusiveMinimum) KeywordPath() []string

func (*ExclusiveMinimum) LocalizedString

func (k *ExclusiveMinimum) LocalizedString(p *message.Printer) string

type FalseSchema

type FalseSchema struct{}

func (*FalseSchema) KeywordPath

func (*FalseSchema) KeywordPath() []string

func (*FalseSchema) LocalizedString

func (*FalseSchema) LocalizedString(p *message.Printer) string

type Format

type Format struct {
	Got  any
	Want string
	Err  error
}

func (*Format) KeywordPath

func (*Format) KeywordPath() []string

func (*Format) LocalizedString

func (k *Format) LocalizedString(p *message.Printer) string

type Group

type Group struct{}

func (*Group) KeywordPath

func (*Group) KeywordPath() []string

func (*Group) LocalizedString

func (*Group) LocalizedString(p *message.Printer) string

type InvalidJsonValue

type InvalidJsonValue struct {
	Value any
}

func (*InvalidJsonValue) KeywordPath

func (*InvalidJsonValue) KeywordPath() []string

func (*InvalidJsonValue) LocalizedString

func (k *InvalidJsonValue) LocalizedString(p *message.Printer) string

type MaxContains

type MaxContains struct {
	Got  []int
	Want int
}

func (*MaxContains) KeywordPath

func (*MaxContains) KeywordPath() []string

func (*MaxContains) LocalizedString

func (k *MaxContains) LocalizedString(p *message.Printer) string

type MaxItems

type MaxItems struct {
	Got, Want int
}

func (*MaxItems) KeywordPath

func (*MaxItems) KeywordPath() []string

func (*MaxItems) LocalizedString

func (k *MaxItems) LocalizedString(p *message.Printer) string

type MaxLength

type MaxLength struct {
	Got, Want int
}

func (*MaxLength) KeywordPath

func (*MaxLength) KeywordPath() []string

func (*MaxLength) LocalizedString

func (k *MaxLength) LocalizedString(p *message.Printer) string

type MaxProperties

type MaxProperties struct {
	Got, Want int
}

func (*MaxProperties) KeywordPath

func (*MaxProperties) KeywordPath() []string

func (*MaxProperties) LocalizedString

func (k *MaxProperties) LocalizedString(p *message.Printer) string

type Maximum

type Maximum struct {
	Got  *big.Rat
	Want *big.Rat
}

func (*Maximum) KeywordPath

func (*Maximum) KeywordPath() []string

func (*Maximum) LocalizedString

func (k *Maximum) LocalizedString(p *message.Printer) string

type MinContains

type MinContains struct {
	Got  []int
	Want int
}

func (*MinContains) KeywordPath

func (*MinContains) KeywordPath() []string

func (*MinContains) LocalizedString

func (k *MinContains) LocalizedString(p *message.Printer) string

type MinItems

type MinItems struct {
	Got, Want int
}

func (*MinItems) KeywordPath

func (*MinItems) KeywordPath() []string

func (*MinItems) LocalizedString

func (k *MinItems) LocalizedString(p *message.Printer) string

type MinLength

type MinLength struct {
	Got, Want int
}

func (*MinLength) KeywordPath

func (*MinLength) KeywordPath() []string

func (*MinLength) LocalizedString

func (k *MinLength) LocalizedString(p *message.Printer) string

type MinProperties

type MinProperties struct {
	Got, Want int
}

func (*MinProperties) KeywordPath

func (*MinProperties) KeywordPath() []string

func (*MinProperties) LocalizedString

func (k *MinProperties) LocalizedString(p *message.Printer) string

type Minimum

type Minimum struct {
	Got  *big.Rat
	Want *big.Rat
}

func (*Minimum) KeywordPath

func (*Minimum) KeywordPath() []string

func (*Minimum) LocalizedString

func (k *Minimum) LocalizedString(p *message.Printer) string

type MultipleOf

type MultipleOf struct {
	Got  *big.Rat
	Want *big.Rat
}

func (*MultipleOf) KeywordPath

func (*MultipleOf) KeywordPath() []string

func (*MultipleOf) LocalizedString

func (k *MultipleOf) LocalizedString(p *message.Printer) string

type Not

type Not struct{}

func (*Not) KeywordPath

func (*Not) KeywordPath() []string

func (*Not) LocalizedString

func (*Not) LocalizedString(p *message.Printer) string

type OneOf

type OneOf struct {
	// Subschemas gives indexes of Subschemas that have matched.
	// Value nil, means none of the subschemas matched.
	Subschemas []int
}

func (*OneOf) KeywordPath

func (*OneOf) KeywordPath() []string

func (*OneOf) LocalizedString

func (k *OneOf) LocalizedString(p *message.Printer) string

type Pattern

type Pattern struct {
	Got  string
	Want string
}

func (*Pattern) KeywordPath

func (*Pattern) KeywordPath() []string

func (*Pattern) LocalizedString

func (k *Pattern) LocalizedString(p *message.Printer) string

type PropertyNames

type PropertyNames struct {
	Property string
}

func (*PropertyNames) KeywordPath

func (*PropertyNames) KeywordPath() []string

func (*PropertyNames) LocalizedString

func (k *PropertyNames) LocalizedString(p *message.Printer) string

type RefCycle

type RefCycle struct {
	URL              string
	KeywordLocation1 string
	KeywordLocation2 string
}

func (*RefCycle) KeywordPath

func (*RefCycle) KeywordPath() []string

func (*RefCycle) LocalizedString

func (k *RefCycle) LocalizedString(p *message.Printer) string

type Reference

type Reference struct {
	Keyword string
	URL     string
}

func (*Reference) KeywordPath

func (k *Reference) KeywordPath() []string

func (*Reference) LocalizedString

func (*Reference) LocalizedString(p *message.Printer) string

type Required

type Required struct {
	Missing []string
}

func (*Required) KeywordPath

func (*Required) KeywordPath() []string

func (*Required) LocalizedString

func (k *Required) LocalizedString(p *message.Printer) string

type Schema

type Schema struct {
	Location string
}

func (*Schema) KeywordPath

func (*Schema) KeywordPath() []string

func (*Schema) LocalizedString

func (k *Schema) LocalizedString(p *message.Printer) string

type Type

type Type struct {
	Got  string
	Want []string
}

func (*Type) KeywordPath

func (*Type) KeywordPath() []string

func (*Type) LocalizedString

func (k *Type) LocalizedString(p *message.Printer) string

type UniqueItems

type UniqueItems struct {
	Duplicates [2]int
}

func (*UniqueItems) KeywordPath

func (*UniqueItems) KeywordPath() []string

func (*UniqueItems) LocalizedString

func (k *UniqueItems) LocalizedString(p *message.Printer) string

Jump to

Keyboard shortcuts

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