middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisallowNonValidatedFields

func DisallowNonValidatedFields(next goyave.Handler) goyave.Handler

DisallowNonValidatedFields validates that all fields in the request are validated by the RuleSet. Returns "422 Unprocessable Entity" and an error message if the user has sent non-validated field(s). Fields ending with "_confirmation" are ignored. If the body parsing failed, this middleware immediately passes to the next handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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