Documentation
¶
Overview ¶
Package validation validates struct tags without framework dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplicationError ¶
ApplicationError converts field failures into approved public validation details, preserving the original cause.
func DecodeJSON ¶
DecodeJSON consumes and closes one bounded JSON request body, rejects unknown fields/trailing documents, then validates dst.
Types ¶
type FieldError ¶
type FieldError struct {
Field string `json:"field"`
Rule string `json:"rule"`
Message string `json:"message"`
}
FieldError describes a safe field-level validation failure.
Click to show internal directories.
Click to hide internal directories.