validate

package
v0.0.0-...-2b52ce1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package validate internalizes Go Playground's Validator framework, setting some common options that we use everywhere, providing some useful helpers, and exporting a simplified API.

Index

Constants

This section is empty.

Variables

View Source
var Default = validator.New(validator.WithRequiredStructEnabled()) //nolint:gochecknoglobals

Default is the package's default validator instance. WithRequiredStructEnabled can be removed once validator/v11 is released.

Functions

func PublicFacingMessage

func PublicFacingMessage(v *validator.Validate, validatorErr error) string

PublicFacingMessage builds a complete error message from a validator error that's suitable for public-facing consumption.

I only added a few possible validations to start. We'll probably need to add more as we go and expand our usage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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