feat: generate schemas from types, improve type definitions #2825
Annotations
16 errors
|
build:
src/generated/spec.schemas.zod.test.ts#L400
Type '{ method: "prompts/get"; params: { _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; name: string; arguments?: Record<string, string> | undefined; }; }' is missing the following properties from type 'GetPromptRequest': jsonrpc, id
|
|
build:
src/generated/spec.schemas.zod.test.ts#L388
Property 'jsonrpc' is missing in type '{ method: "notifications/resources/updated"; params: { _meta?: Record<string, unknown> | undefined; uri: string; }; }' but required in type 'ResourceUpdatedNotification'.
|
|
build:
src/generated/spec.schemas.zod.test.ts#L384
Type '{ method: "resources/unsubscribe"; params: { _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; uri: string; }; }' is missing the following properties from type 'UnsubscribeRequest': jsonrpc, id
|
|
build:
src/generated/spec.schemas.zod.test.ts#L380
Type '{ method: "resources/subscribe"; params: { _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; uri: string; }; }' is missing the following properties from type 'SubscribeRequest': jsonrpc, id
|
|
build:
src/generated/spec.schemas.zod.test.ts#L376
Property 'jsonrpc' is missing in type '{ method: "notifications/resources/list_changed"; params?: { _meta?: Record<string, unknown> | undefined; } | undefined; }' but required in type 'ResourceListChangedNotification'.
|
|
build:
src/generated/spec.schemas.zod.test.ts#L374
Type '{ method: "resources/read"; params: { _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; uri: string; }; }' is missing the following properties from type 'ReadResourceRequest': jsonrpc, id
|
|
build:
src/generated/spec.schemas.zod.test.ts#L358
Property 'jsonrpc' is missing in type '{ method: "notifications/progress"; params: { _meta?: Record<string, unknown> | undefined; progressToken: string | number; progress: number; total?: number | undefined; message?: string | undefined; }; }' but required in type 'ProgressNotification'.
|
|
build:
src/generated/spec.schemas.zod.test.ts#L354
Type '{ method: "ping"; params?: { _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; } | undefined; }' is missing the following properties from type 'PingRequest': jsonrpc, id
|
|
build:
src/generated/spec.schemas.zod.test.ts#L344
Property 'jsonrpc' is missing in type '{ method: "notifications/initialized"; params?: { _meta?: Record<string, unknown> | undefined; } | undefined; }' but required in type 'InitializedNotification'.
|
|
build:
src/generated/spec.schemas.zod.test.ts#L338
Property 'jsonrpc' is missing in type '{ method: "notifications/cancelled"; params: { _meta?: Record<string, unknown> | undefined; requestId?: string | number | undefined; reason?: string | undefined; }; }' but required in type 'CancelledNotification'.
|
|
test (18)
Process completed with exit code 1.
|
|
test/shared/protocol.test.ts > Message Interception > server queues responses/errors for task-related requests > should queue error when handling a request with relatedTask metadata that throws:
test/shared/protocol.test.ts#L3767
AssertionError: expected 'Cannot read properties of undefined (…' to contain 'Test error message'
Expected: "Test error message"
Received: "Cannot read properties of undefined (reading '_zod')"
❯ test/shared/protocol.test.ts:3767:62
|
|
test/shared/protocol.test.ts > Message Interception > server queues responses/errors for task-related requests > should queue response when handling a request with relatedTask metadata:
test/shared/protocol.test.ts#L3716
AssertionError: expected 'error' to be 'response' // Object.is equality
Expected: "response"
Received: "error"
❯ test/shared/protocol.test.ts:3716:41
|
|
test (24)
Process completed with exit code 1.
|
|
test/shared/protocol.test.ts > Message Interception > server queues responses/errors for task-related requests > should queue error when handling a request with relatedTask metadata that throws:
test/shared/protocol.test.ts#L3767
AssertionError: expected 'Cannot read properties of undefined (…' to contain 'Test error message'
Expected: "Test error message"
Received: "Cannot read properties of undefined (reading '_zod')"
❯ test/shared/protocol.test.ts:3767:62
|
|
test/shared/protocol.test.ts > Message Interception > server queues responses/errors for task-related requests > should queue response when handling a request with relatedTask metadata:
test/shared/protocol.test.ts#L3716
AssertionError: expected 'error' to be 'response' // Object.is equality
Expected: "response"
Received: "error"
❯ test/shared/protocol.test.ts:3716:41
|