Expand description
JSON Schema validation for MCP tool inputs.
This module provides a simple JSON Schema validator that covers the core requirements for MCP tool input validation:
- Type checking (string, number, integer, boolean, object, array, null)
- Required field validation
- Enum validation
- Property validation for objects
- Items validation for arrays
This is not a full JSON Schema implementation but covers the subset used by MCP.
Structs§
- Validation
Error - Error returned when JSON Schema validation fails.
Functions§
- validate
- Validates a JSON value against a JSON Schema.
- validate_
strict - Validates a JSON value against a JSON Schema in strict mode.
Type Aliases§
- Validation
Result - Result of JSON Schema validation.