jsonschemaobj

package module
v0.0.0-...-5b367df Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 5 Imported by: 0

README

jsonschemaobj

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arr

type Arr = []interface{}

type CompiledObjSchema

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

func (*CompiledObjSchema) Validate

func (s *CompiledObjSchema) Validate(i interface{}) *ValidationError

type Obj

type Obj = map[string]interface{}

type ObjSchema

type ObjSchema map[string]interface{}

func (ObjSchema) Compile

func (s ObjSchema) Compile() (*CompiledObjSchema, error)

func (ObjSchema) MustCompile

func (s ObjSchema) MustCompile() *CompiledObjSchema

type PathError

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

func (*PathError) Error

func (e *PathError) Error() string

func (*PathError) Message

func (e *PathError) Message() string

func (*PathError) Path

func (e *PathError) Path() []string

func (*PathError) StringPath

func (e *PathError) StringPath(separator string) string

type ValidationError

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

func (*ValidationError) Error

func (e *ValidationError) Error() string

func (*ValidationError) Errors

func (e *ValidationError) Errors() []*PathError

Jump to

Keyboard shortcuts

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