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)
Click to show internal directories.
Click to hide internal directories.