validator

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package validator checks model output JSON against a JSON schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(data []byte, schema map[string]any) error

Validate checks that data conforms to schema (a parsed JSON-schema object). A nil/empty schema passes (structure was already grammar-constrained).

Types

This section is empty.

Jump to

Keyboard shortcuts

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