/** * Request body schema validator * * Why: Catch invalid requests before sending to API. Better error messages for users. * Validates against OpenAPI schema definitions. */ import type { SchemaInfo, OperationInfo } from '../types/openapi.js'; export interface ValidationResult { valid: boolean; errors?: ValidationError[]; } export interface ValidationError { path: string; message: string; schema: SchemaInfo; value: unknown; } export declare class SchemaValidator { /** * Validate request body against OpenAPI schema * * Why: Prevents sending malformed requests. OpenAPI schema is the source of truth. */ validateRequestBody(operation: OperationInfo, body: unknown): ValidationResult; /** * Recursively validate data against schema */ private validateAgainstSchema; } //# sourceMappingURL=schema-validator.d.ts.map