Skip to content

feat: add library-based ts-to-zod schema generation #2827

feat: add library-based ts-to-zod schema generation

feat: add library-based ts-to-zod schema generation #2827

Triggered via pull request December 12, 2025 17:03
Status Failure
Total duration 36s
Artifacts

main.yml

on: pull_request
Matrix: test
publish
publish
Fit to window
Zoom out
Zoom in

Annotations

16 errors
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#L368
Type '{ params?: { _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; cursor?: string | undefined; } | undefined; method: "resources/templates/list"; }' is missing the following properties from type 'ListResourceTemplatesRequest': jsonrpc, id
build: src/generated/spec.schemas.zod.test.ts#L366
Type '{ params?: { _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; cursor?: string | undefined; } | undefined; method: "resources/list"; }' is missing the following properties from type 'ListResourcesRequest': jsonrpc, id
build: src/generated/spec.schemas.zod.test.ts#L362
Type '{ method: string; params?: { _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; cursor?: string | undefined; } | undefined; }' is missing the following properties from type 'PaginatedRequest': 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