fix: type of plugin-osa Schema in order to have correct type inference on it #1220
Triggered via pull request
September 22, 2024 17:39
Status
Failure
Total duration
1m 32s
Artifacts
–
Annotations
12 errors and 1 warning
Build and test (ubuntu-latest, 18)
@kubb/plugin-oas#build: command (/home/runner/work/kubb/kubb/packages/plugin-oas) /home/runner/setup-pnpm/node_modules/.bin/pnpm run build exited (1)
|
Build and test (ubuntu-latest, 18)
Argument of type '({ keyword: string; } & { keyword: "string"; }) | ({ keyword: string; } & { keyword: "number"; }) | ({ keyword: string; } & { keyword: "boolean"; }) | ({ keyword: string; } & { keyword: "undefined"; }) | ({ keyword: string; } & { keyword: "object"; args: { properties: { [x: string]: Schema[]; }; additionalProperties: Schema[]; strict?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "name"; args: string; }) | ({ keyword: string; } & { keyword: "url"; }) | ({ keyword: string; } & { keyword: "enum"; args: { name: string; typeName: string; asConst: boolean; items: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }[]; }; }) | ({ keyword: string; } & { keyword: "default"; args: string | number | boolean; }) | ({ keyword: string; } & { keyword: "nullable"; }) | ({ keyword: string; } & { keyword: "readOnly"; }) | ({ keyword: string; } & { keyword: "writeOnly"; }) | ({ keyword: string; } & { keyword: "example"; args: string; }) | ({ keyword: string; } & { keyword: "deprecated"; }) | ({ keyword: string; } & { keyword: "const"; args: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "array"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "integer"; }) | ({ keyword: string; } & { keyword: "null"; }) | ({ keyword: string; } & { keyword: "unknown"; }) | ({ keyword: string; } & { keyword: "schema"; args: { type: "string" | "number" | "boolean" | "object" | "array" | "integer"; format?: string | undefined; }; }) | ({ keyword: string; } & { keyword: "any"; }) | ({ keyword: string; } & { keyword: "strict"; }) | ({ keyword: string; } & { keyword: "uuid"; }) | ({ keyword: string; } & { keyword: "email"; }) | ({ keyword: string; } & { keyword: "firstName"; }) | ({ keyword: string; } & { keyword: "lastName"; }) | ({ keyword: string; } & { keyword: "phone"; }) | ({ keyword: string; } & { keyword: "password"; }) | ({ keyword: string; } & { keyword: "date"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "time"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "datetime"; args: { offset?: boolean | undefined; local?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "tuple"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "and"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "union"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "ref"; args: { name: string; path: OptionalPath; }; }) | ({ keyword: string; } & { keyword: "describe"; args: string; }) | ({ keyword: string; } & { keyword: "optional"; }) | ({ keyword: string; } & { keyword: "nullish"; }) | ({ keyword: string; } & { keyword: "blob"; }) | ({ keyword: string; } & { keyword: "catchall"; }) | { keyword: "enum"; args: { name: string | undefined; typeName: string; asConst: boolean; items: { name: string; value: string | number; format: string; }[]; }; }' is not assignable to parameter of type 'Schema'.
|
Build and test (ubuntu-latest, 18)
Argument of type '({ keyword: string; } & { keyword: "string"; }) | ({ keyword: string; } & { keyword: "number"; }) | ({ keyword: string; } & { keyword: "boolean"; }) | ({ keyword: string; } & { keyword: "undefined"; }) | ({ keyword: string; } & { keyword: "object"; args: { properties: { [x: string]: Schema[]; }; additionalProperties: Schema[]; strict?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "name"; args: string; }) | ({ keyword: string; } & { keyword: "url"; }) | ({ keyword: string; } & { keyword: "enum"; args: { name: string; typeName: string; asConst: boolean; items: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }[]; }; }) | ({ keyword: string; } & { keyword: "default"; args: string | number | boolean; }) | ({ keyword: string; } & { keyword: "nullable"; }) | ({ keyword: string; } & { keyword: "readOnly"; }) | ({ keyword: string; } & { keyword: "writeOnly"; }) | ({ keyword: string; } & { keyword: "example"; args: string; }) | ({ keyword: string; } & { keyword: "deprecated"; }) | ({ keyword: string; } & { keyword: "const"; args: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "array"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "integer"; }) | ({ keyword: string; } & { keyword: "null"; }) | ({ keyword: string; } & { keyword: "unknown"; }) | ({ keyword: string; } & { keyword: "schema"; args: { type: "string" | "number" | "boolean" | "object" | "array" | "integer"; format?: string | undefined; }; }) | ({ keyword: string; } & { keyword: "any"; }) | ({ keyword: string; } & { keyword: "strict"; }) | ({ keyword: string; } & { keyword: "uuid"; }) | ({ keyword: string; } & { keyword: "email"; }) | ({ keyword: string; } & { keyword: "firstName"; }) | ({ keyword: string; } & { keyword: "lastName"; }) | ({ keyword: string; } & { keyword: "phone"; }) | ({ keyword: string; } & { keyword: "password"; }) | ({ keyword: string; } & { keyword: "date"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "time"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "datetime"; args: { offset?: boolean | undefined; local?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "tuple"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "and"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "union"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "ref"; args: { name: string; path: OptionalPath; }; }) | ({ keyword: string; } & { keyword: "describe"; args: string; }) | ({ keyword: string; } & { keyword: "optional"; }) | ({ keyword: string; } & { keyword: "nullish"; }) | ({ keyword: string; } & { keyword: "blob"; }) | ({ keyword: string; } & { keyword: "catchall"; }) | { keyword: "enum"; args: { name: string | undefined; typeName: string; asConst: boolean; items: { name: string; value: string | number; format: string; }[]; }; }' is not assignable to parameter of type 'Schema'.
|
Build and test (ubuntu-latest, 18)
Type '(({ keyword: string; } & { keyword: "string"; }) | ({ keyword: string; } & { keyword: "number"; }) | ({ keyword: string; } & { keyword: "boolean"; }) | ({ keyword: string; } & { keyword: "undefined"; }) | ({ keyword: string; } & { keyword: "object"; args: { properties: { [x: string]: Schema[]; }; additionalProperties: Schema[]; strict?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "name"; args: string; }) | ({ keyword: string; } & { keyword: "url"; }) | ({ keyword: string; } & { keyword: "enum"; args: { name: string; typeName: string; asConst: boolean; items: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }[]; }; }) | ({ keyword: string; } & { keyword: "default"; args: string | number | boolean; }) | ({ keyword: string; } & { keyword: "nullable"; }) | ({ keyword: string; } & { keyword: "readOnly"; }) | ({ keyword: string; } & { keyword: "writeOnly"; }) | ({ keyword: string; } & { keyword: "example"; args: string; }) | ({ keyword: string; } & { keyword: "deprecated"; }) | ({ keyword: string; } & { keyword: "const"; args: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "array"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "integer"; }) | ({ keyword: string; } & { keyword: "null"; }) | ({ keyword: string; } & { keyword: "unknown"; }) | ({ keyword: string; } & { keyword: "schema"; args: { type: "string" | "number" | "boolean" | "object" | "array" | "integer"; format?: string | undefined; }; }) | ({ keyword: string; } & { keyword: "any"; }) | ({ keyword: string; } & { keyword: "strict"; }) | ({ keyword: string; } & { keyword: "uuid"; }) | ({ keyword: string; } & { keyword: "email"; }) | ({ keyword: string; } & { keyword: "firstName"; }) | ({ keyword: string; } & { keyword: "lastName"; }) | ({ keyword: string; } & { keyword: "phone"; }) | ({ keyword: string; } & { keyword: "password"; }) | ({ keyword: string; } & { keyword: "date"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "time"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "datetime"; args: { offset?: boolean | undefined; local?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "tuple"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "and"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "union"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "ref"; args: { name: string; path: OptionalPath; }; }) | ({ keyword: string; } & { keyword: "describe"; args: string; }) | ({ keyword: string; } & { keyword: "optional"; }) | ({ keyword: string; } & { keyword: "nullish"; }) | ({ keyword: string; } & { keyword: "blob"; }) | ({ keyword: string; } & { keyword: "catchall"; }) | { keyword: "enum"; args: { name: string | undefined; typeName: string; asConst: boolean; items: { name: string; value: string | number; format: string; }[]; }; })[]' is not assignable to type 'Schema[]'.
|
Build and test (ubuntu-latest, 18)
Type '{ keyword: "number" | "boolean" | "object" | "integer" | "null"; }' is not assignable to type 'Schema'.
|
Build and test (ubuntu-latest, 18)
Argument of type '({ keyword: string; } & { keyword: "string"; }) | ({ keyword: string; } & { keyword: "number"; }) | ({ keyword: string; } & { keyword: "boolean"; }) | ({ keyword: string; } & { keyword: "undefined"; }) | ({ keyword: string; } & { keyword: "object"; args: { properties: { [x: string]: Schema[]; }; additionalProperties: Schema[]; strict?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "name"; args: string; }) | ({ keyword: string; } & { keyword: "url"; }) | ({ keyword: string; } & { keyword: "enum"; args: { name: string; typeName: string; asConst: boolean; items: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }[]; }; }) | ({ keyword: string; } & { keyword: "default"; args: string | number | boolean; }) | ({ keyword: string; } & { keyword: "nullable"; }) | ({ keyword: string; } & { keyword: "readOnly"; }) | ({ keyword: string; } & { keyword: "writeOnly"; }) | ({ keyword: string; } & { keyword: "example"; args: string; }) | ({ keyword: string; } & { keyword: "deprecated"; }) | ({ keyword: string; } & { keyword: "const"; args: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "array"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "integer"; }) | ({ keyword: string; } & { keyword: "null"; }) | ({ keyword: string; } & { keyword: "unknown"; }) | ({ keyword: string; } & { keyword: "schema"; args: { type: "string" | "number" | "boolean" | "object" | "array" | "integer"; format?: string | undefined; }; }) | ({ keyword: string; } & { keyword: "any"; }) | ({ keyword: string; } & { keyword: "strict"; }) | ({ keyword: string; } & { keyword: "uuid"; }) | ({ keyword: string; } & { keyword: "email"; }) | ({ keyword: string; } & { keyword: "firstName"; }) | ({ keyword: string; } & { keyword: "lastName"; }) | ({ keyword: string; } & { keyword: "phone"; }) | ({ keyword: string; } & { keyword: "password"; }) | ({ keyword: string; } & { keyword: "date"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "time"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "datetime"; args: { offset?: boolean | undefined; local?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "tuple"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "and"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "union"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "ref"; args: { name: string; path: OptionalPath; }; }) | ({ keyword: string; } & { keyword: "describe"; args: string; }) | ({ keyword: string; } & { keyword: "optional"; }) | ({ keyword: string; } & { keyword: "nullish"; }) | ({ keyword: string; } & { keyword: "blob"; }) | ({ keyword: string; } & { keyword: "catchall"; }) | { keyword: "enum"; args: { name: string | undefined; typeName: string; asConst: boolean; items: { name: string; value: string | number; format: string; }[]; }; }' is not assignable to parameter of type 'Schema'.
|
Build and test (ubuntu-latest, 18)
Argument of type '({ keyword: string; } & { keyword: "string"; }) | ({ keyword: string; } & { keyword: "number"; }) | ({ keyword: string; } & { keyword: "boolean"; }) | ({ keyword: string; } & { keyword: "undefined"; }) | ({ keyword: string; } & { keyword: "object"; args: { properties: { [x: string]: Schema[]; }; additionalProperties: Schema[]; strict?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "name"; args: string; }) | ({ keyword: string; } & { keyword: "url"; }) | ({ keyword: string; } & { keyword: "enum"; args: { name: string; typeName: string; asConst: boolean; items: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }[]; }; }) | ({ keyword: string; } & { keyword: "default"; args: string | number | boolean; }) | ({ keyword: string; } & { keyword: "nullable"; }) | ({ keyword: string; } & { keyword: "readOnly"; }) | ({ keyword: string; } & { keyword: "writeOnly"; }) | ({ keyword: string; } & { keyword: "example"; args: string; }) | ({ keyword: string; } & { keyword: "deprecated"; }) | ({ keyword: string; } & { keyword: "const"; args: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "array"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "integer"; }) | ({ keyword: string; } & { keyword: "null"; }) | ({ keyword: string; } & { keyword: "unknown"; }) | ({ keyword: string; } & { keyword: "schema"; args: { type: "string" | "number" | "boolean" | "object" | "array" | "integer"; format?: string | undefined; }; }) | ({ keyword: string; } & { keyword: "any"; }) | ({ keyword: string; } & { keyword: "strict"; }) | ({ keyword: string; } & { keyword: "uuid"; }) | ({ keyword: string; } & { keyword: "email"; }) | ({ keyword: string; } & { keyword: "firstName"; }) | ({ keyword: string; } & { keyword: "lastName"; }) | ({ keyword: string; } & { keyword: "phone"; }) | ({ keyword: string; } & { keyword: "password"; }) | ({ keyword: string; } & { keyword: "date"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "time"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "datetime"; args: { offset?: boolean | undefined; local?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "tuple"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "and"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "union"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "ref"; args: { name: string; path: OptionalPath; }; }) | ({ keyword: string; } & { keyword: "describe"; args: string; }) | ({ keyword: string; } & { keyword: "optional"; }) | ({ keyword: string; } & { keyword: "nullish"; }) | ({ keyword: string; } & { keyword: "blob"; }) | ({ keyword: string; } & { keyword: "catchall"; }) | { keyword: "enum"; args: { name: string | undefined; typeName: string; asConst: boolean; items: { name: string; value: string | number; format: string; }[]; }; }' is not assignable to parameter of type 'Schema'.
|
Build and test (ubuntu-latest, 18)
Type '(({ keyword: string; } & { keyword: "string"; }) | ({ keyword: string; } & { keyword: "number"; }) | ({ keyword: string; } & { keyword: "boolean"; }) | ({ keyword: string; } & { keyword: "undefined"; }) | ({ keyword: string; } & { keyword: "object"; args: { properties: { [x: string]: Schema[]; }; additionalProperties: Schema[]; strict?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "name"; args: string; }) | ({ keyword: string; } & { keyword: "url"; }) | ({ keyword: string; } & { keyword: "enum"; args: { name: string; typeName: string; asConst: boolean; items: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }[]; }; }) | ({ keyword: string; } & { keyword: "default"; args: string | number | boolean; }) | ({ keyword: string; } & { keyword: "nullable"; }) | ({ keyword: string; } & { keyword: "readOnly"; }) | ({ keyword: string; } & { keyword: "writeOnly"; }) | ({ keyword: string; } & { keyword: "example"; args: string; }) | ({ keyword: string; } & { keyword: "deprecated"; }) | ({ keyword: string; } & { keyword: "const"; args: { name: string | number; format: "string" | "number" | "boolean"; value?: string | number | boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "array"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "integer"; }) | ({ keyword: string; } & { keyword: "null"; }) | ({ keyword: string; } & { keyword: "unknown"; }) | ({ keyword: string; } & { keyword: "schema"; args: { type: "string" | "number" | "boolean" | "object" | "array" | "integer"; format?: string | undefined; }; }) | ({ keyword: string; } & { keyword: "any"; }) | ({ keyword: string; } & { keyword: "strict"; }) | ({ keyword: string; } & { keyword: "uuid"; }) | ({ keyword: string; } & { keyword: "email"; }) | ({ keyword: string; } & { keyword: "firstName"; }) | ({ keyword: string; } & { keyword: "lastName"; }) | ({ keyword: string; } & { keyword: "phone"; }) | ({ keyword: string; } & { keyword: "password"; }) | ({ keyword: string; } & { keyword: "date"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "time"; args: { type?: "string" | "date" | undefined; }; }) | ({ keyword: string; } & { keyword: "datetime"; args: { offset?: boolean | undefined; local?: boolean | undefined; }; }) | ({ keyword: string; } & { keyword: "tuple"; args: { items: Schema[]; min?: number | undefined; max?: number | undefined; }; }) | ({ keyword: string; } & { keyword: "and"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "union"; args: Schema[]; }) | ({ keyword: string; } & { keyword: "ref"; args: { name: string; path: OptionalPath; }; }) | ({ keyword: string; } & { keyword: "describe"; args: string; }) | ({ keyword: string; } & { keyword: "optional"; }) | ({ keyword: string; } & { keyword: "nullish"; }) | ({ keyword: string; } & { keyword: "blob"; }) | ({ keyword: string; } & { keyword: "catchall"; }) | { keyword: "enum"; args: { name: string | undefined; typeName: string; asConst: boolean; items: { name: string; value: string | number; format: string; }[]; }; })[]' is not assignable to type 'Schema[]'.
|
Build and test (ubuntu-latest, 18)
Type '{ keyword: "number" | "boolean" | "object" | "integer" | "null"; }' is not assignable to type 'Schema'.
|
Build and test (ubuntu-latest, 18)
Process completed with exit code 1.
|
Build and test (windows-latest, 18)
The job was canceled because "ubuntu-latest_18" failed.
|
Build and test (windows-latest, 18)
The operation was canceled.
|
Build and test (ubuntu-latest, 18)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|