validation

package
v0.0.66 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package validation provides shared input validation helpers for CHIP tools. Helpers return Go errors that the MCP SDK wraps as tool execution errors (isError: true), letting the calling model see the problem and self-correct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UUID

func UUID(fieldName, value string) error

UUID verifies value is a well-formed UUID. fieldName is surfaced in the returned error so the calling model can identify which field failed.

func UUIDOptional

func UUIDOptional(fieldName, value string) error

UUIDOptional verifies value is a well-formed UUID when non-empty. Empty strings pass. Use for optional UUID fields.

func UUIDs

func UUIDs(fieldName string, values []string) error

UUIDs verifies every entry in values is a well-formed UUID. An empty slice passes. The error identifies the offending element's index.

Types

This section is empty.

Jump to

Keyboard shortcuts

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