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 return400; non-compliant outputs return502and never reach the clientwarn— log violation, pass throughlog— record the violation only
Schema validation applies to gateway routes. There is no transform or re-prompt mode. APIs: CRUD, validate, violations, stats.