Skip to content
Docs

Schema Validation

AJV-based JSON Schema per route. Directions: request validation (sanitize/reject malformed inputs) and response validation (enforce structured-output schemas on LLM completions — for example, JSON-mode outputs that must match a published Order schema). Modes:

  • reject — non-compliant requests return 400; non-compliant outputs return 502 and never reach the client
  • warn — log violation, pass through
  • log — record the violation only

Schema validation applies to gateway routes. There is no transform or re-prompt mode. APIs: CRUD, validate, violations, stats.