Skip to content

Switch to openapi from zod #591

Switch to openapi from zod

Switch to openapi from zod #591

Triggered via pull request July 21, 2025 11:11
Status Failure
Total duration 25s
Artifacts

node.js.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors
lint
Process completed with exit code 1.
lint: packages/log-server/src/api.ts#L1
'express' is defined but never used. Allowed unused vars must match /^_/u
build
Argument of type 'FetchResponse<paths, { credentials: string; headers: { 'content-type': string; }; body: { data: { type: string; attributes: { name: string | null; status: string; }; relationships: { experiment: { data: { id: any; type: string; }; }; }; }; }; }, `${string}/${string}`>' is not assignable to parameter of type '{ response: Response; error: string | { errors: ErrorResource[]; }; }'.
build
Argument of type 'FetchResponse<paths, { credentials: string; params: { path: { id: string; }; }; headers: { 'content-type': string; }; body: { data: { type: string; id: string; attributes: { status: string; lastLogNumber: number; }; }; }; }, `${string}/${string}`>' is not assignable to parameter of type '{ response: Response; error: string | { errors: ErrorResource[]; }; }'.
build
Argument of type 'FetchResponse<paths, { params: { query: { 'filter[experiment.id]': string | undefined; 'filter[experiment.name]': string | undefined; 'filter[name]': string; }; }; }, `${string}/${string}`>' is not assignable to parameter of type '{ response: Response; error: string | { errors: ErrorResource[]; }; }'.
build
Argument of type 'FetchResponse<paths, { params: { query: { 'filter[name]': string; }; }; }, `${string}/${string}`>' is not assignable to parameter of type '{ response: Response; error: string | { errors: ErrorResource[]; }; }'.
build
Binding element 'id' implicitly has an 'any' type.
build
Parameter 'r' implicitly has an 'any' type.
build
Argument of type 'any' is not assignable to parameter of type 'never'.
build
Argument of type 'FetchResponse<paths, { credentials: string; params: { query: { 'filter[status]': string[]; 'filter[experiment.name]': string | undefined; 'filter[name]': string | undefined; include: string[]; }; }; }, `${string}/${string}`>' is not assignable to parameter of type '{ response: Response; error: string | { errors: ErrorResource[]; }; }'.
build
Argument of type 'FetchResponse<paths, { params: { path: { id: string; }; }; credentials: string; }, `${string}/${string}`>' is not assignable to parameter of type '{ response: Response; error: string | { errors: ErrorResource[]; }; }'.
build
Cannot find module './generated/openapi.js' or its corresponding type declarations.