MCPcopy Create free account
hub / github.com/kataras/iris / validation

Method validation

x/errors/errors.go:297–299  ·  view source on GitHub ↗
(ctx *context.Context, validationErrors interface{})

Source from the content-addressed store, hash-verified

295}
296
297func (e ErrorCodeName) validation(ctx *context.Context, validationErrors interface{}) {
298 fail(ctx, e, "validation failure", "fields were invalid", validationErrors, nil)
299}
300
301// Err sends the error's text as a message to the client.
302// In exception, if the given "err" is a type of validation error

Callers 1

ValidationMethod · 0.95

Calls 1

failFunction · 0.70

Tested by

no test coverage detected