Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StrictlyRequired = strictlyRequiredRule{}
Functions ¶
func NotEqual ¶
func NotEqual(value string) validation.Rule
func NotStartWith ¶
func NotStartWith(prefix string) validation.Rule
func OneOf ¶
func OneOf(allowed ...any) validation.Rule
func OneOfOrderBy ¶
func OneOfOrderBy(orderBys ...string) validation.Rule
Types ¶
type DecoderValidator ¶
type DecoderValidator struct{}
func NewDefaultDecoderValidator ¶
func NewDefaultDecoderValidator() DecoderValidator
func (DecoderValidator) DecodeAndValidateJSONPayload ¶
func (dv DecoderValidator) DecodeAndValidateJSONPayload(r *http.Request, object any) error
func (DecoderValidator) DecodeAndValidateURLValues ¶
func (dv DecoderValidator) DecodeAndValidateURLValues(r *http.Request, object KeyedPayload) error
func (DecoderValidator) DecodeAndValidateYAMLPayload ¶
func (dv DecoderValidator) DecodeAndValidateYAMLPayload(r *http.Request, object any) error
type IgnoredKeysPayload ¶
Click to show internal directories.
Click to hide internal directories.