MCPcopy Index your code
hub / github.com/modelcontextprotocol/typescript-sdk / jsonSchemaValidator

Interface jsonSchemaValidator

src/validation/types.ts:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 * ```
54 */
55export interface jsonSchemaValidator {
56 /**
57 * Create a validator for the given JSON Schema
58 *
59 * @param schema - Standard JSON Schema object
60 * @returns A validator function that can be called multiple times
61 */
62 getValidator<T>(schema: JsonSchemaType): JsonSchemaValidator<T>;
63}

Callers 3

validation.test.tsFile · 0.65
cacheToolMetadataMethod · 0.65
elicitInputMethod · 0.65

Implementers 3

ThrowingValidatortest/server/index.test.ts
CfWorkerJsonSchemaValidatorsrc/validation/cfworker-provider.ts
AjvJsonSchemaValidatorsrc/validation/ajv-provider.ts

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…