Skip to main content

Module validation

Module validation 

Source
Expand description

Lightweight JSON Schema validator for tool input schemas.

Supports the subset of JSON Schema used by tool definitions:

  • type: “object”, “string”, “number”, “integer”, “boolean”, “array”, “null”
  • required: array of required field names (for objects)
  • properties: map of field name → sub-schema (for objects)
  • items: schema for array items
  • enum: list of allowed values

Functions§

validate_json
Validate a JSON value against a JSON Schema.