schema

package
v0.1.0-beta.1 Latest Latest
Warning

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

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

Documentation

Overview

Package schema validates downstream-tool arguments against the subset of JSON Schema Ozy catalogs. It is intentionally tiny and dependency-free so both the live broker (pre-invocation validation) and the eval harness can share one implementation without an import cycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(schema, args map[string]any) []string

Validate checks args against the subset of JSON Schema the catalog uses: `required` field presence and declared scalar/array/object `type`s. It returns a sorted list of human-readable problems (empty when args satisfy the schema). Unknown extra fields are allowed (additionalProperties defaults to true), so a removed/renamed field is detected by comparing two schemas, not by this check.

Types

This section is empty.

Jump to

Keyboard shortcuts

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