Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAPIV1Routes ¶
func CreateAPIV1Routes(context *serverContext.Context, api fiber.Router)
func UnprocessableEntityResponse ¶
func UnprocessableEntityResponse(ctx *fiber.Ctx, errors []*ValidationError) error
Types ¶
type ValidationError ¶
type ValidationError struct { FailedField string `json:"failed_field" xml:"failed_field"` Tag string `json:"tag" xml:"tag"` Value string `json:"value" xml:"value"` }
func ValidateStruct ¶
func ValidateStruct(structToValidate interface{}) []*ValidationError
func ValidationErrorFromError ¶
func ValidationErrorFromError(field string, err error) *ValidationError
Click to show internal directories.
Click to hide internal directories.