validation

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeInput

func SanitizeInput(input string) string

SanitizeInput removes potentially dangerous characters from input

func ValidateAssistant

func ValidateAssistant(assistant string) error

ValidateAssistant validates an assistant name

func ValidateBaseRef

func ValidateBaseRef(ref string) error

ValidateBaseRef validates a git base reference

func ValidateProjectPath

func ValidateProjectPath(path string) error

ValidateProjectPath validates a project path

func ValidateWorkspaceName added in v0.0.5

func ValidateWorkspaceName(name string) error

ValidateWorkspaceName validates a workspace name

Types

type ValidationError

type ValidationError struct {
	Field   string
	Message string
}

ValidationError represents a validation failure

func (*ValidationError) Error

func (e *ValidationError) Error() string

Jump to

Keyboard shortcuts

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