@mastra/schema-compat
Version:
Tool schema compatibility layer for Mastra.ai
14 lines • 691 B
TypeScript
import type { SchemaCompatLayer } from '../schema-compatibility.js';
/**
* Universal test suite — works for ALL providers.
* Tests JSON schema generation, shouldApply, passthrough/additionalProperties,
* ZodIntersection, preserve non-null values, empty objects, valid edge values.
*/
export declare function createSuite(layer: SchemaCompatLayer): void;
/**
* OpenAI-specific test suite — only for layers that implement #traverse behavior.
* Tests null→undefined transforms, default value application from null,
* allPropsRequired, and strict mode compliance.
*/
export declare function createOpenAISuite(layer: SchemaCompatLayer): void;
//# sourceMappingURL=test-suite.d.ts.map