validator

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidEmail       = errors.New("accepted_by must be a valid email address")
	ErrJustificationShort = errors.New("justification is too short")
	ErrBannedPhrase       = errors.New("justification contains banned phrases")
	ErrExpiryTooLong      = errors.New("expiration date exceeds maximum allowed limit")
)

Functions

func ValidateBusinessRules

func ValidateBusinessRules(a model.Acceptance, cfg config.AcceptanceConfig) error

ValidateBusinessRules enforces acceptance constraints against the config limits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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