jsonschema

package
v0.0.0-...-b246809 Latest Latest
Warning

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

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

Documentation

Overview

Package jsonschema provides lightweight JSON Schema validation for tool inputs. It supports the subset of JSON Schema used by agentflow tools: type checking, required fields, enum constraints, and nested object validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(schema map[string]any, input json.RawMessage) error

Validate checks that input conforms to the given JSON Schema. Returns nil if valid, or an error describing the first violation found. An empty or nil schema always passes validation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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