schema

package
v0.20.23 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 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 ValidationError

type ValidationError struct {
	Field   string                 `json:"field"`
	Type    string                 `json:"type"`
	Value   interface{}            `json:"value"`
	Message string                 `json:"message"`
	Details map[string]interface{} `json:"details"`
}

func NewValidationError

func NewValidationError(err gojsonschema.ResultError) *ValidationError

func (ValidationError) Error

func (e ValidationError) Error() string

type ValidationErrors

type ValidationErrors struct {
	Errors []*ValidationError
}

func NewValidationErrors

func NewValidationErrors(result *gojsonschema.Result) *ValidationErrors

func (ValidationErrors) Error

func (e ValidationErrors) Error() string

func (ValidationErrors) MarshalJSON

func (e ValidationErrors) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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