Feat/support multi languages #76
Annotations
21 errors and 4 warnings
Typecheck
Property 'name' does not exist on type '{} | TemplateProps'.
|
Typecheck
Property 'generics' does not exist on type '{} | TemplateProps'.
|
Typecheck
Property 'returnType' does not exist on type '{} | TemplateProps'.
|
Typecheck
Property 'params' does not exist on type '{} | TemplateProps'.
|
Typecheck
Property 'JSDoc' does not exist on type '{} | TemplateProps'.
|
Typecheck
Property 'client' does not exist on type '{} | TemplateProps'.
|
Typecheck
Type '(({ name, generics, returnType, params, JSDoc, client, }: TemplateProps) => ReactNode) | undefined' does not satisfy the constraint 'JSXElementConstructor<any> | keyof IntrinsicElements'.
|
Typecheck
Property 'templates' is missing in type '{}' but required in type 'FileProps'.
|
Typecheck
@kubb/swagger-client#typecheck: command (/home/runner/work/kubb/kubb/packages/swagger-client) /home/runner/setup-pnpm/node_modules/.bin/pnpm run typecheck exited (1)
|
Typecheck
Process completed with exit code 1.
|
packages/swagger-client/src/OperationGenerator.test.tsx > OperationGenerator > [GET] should generate with pathParamsType `inline`:
packages/swagger-client/src/OperationGenerator.test.tsx#L48
Error: Snapshot `OperationGenerator > [GET] should generate with pathParamsType `inline` 1` mismatched
- Expected
+ Received
@@ -27,11 +27,11 @@
],
"path": "showPetById.ts",
"root": "showPetById.ts",
},
],
- "language": undefined,
+ "language": "typescript",
"meta": {
"name": "showPetById",
"pluginKey": undefined,
"tag": "pets",
},
❯ packages/swagger-client/src/OperationGenerator.test.tsx:48:19
|
packages/swagger-client/src/OperationGenerator.test.tsx > OperationGenerator > [GET] should generate with pathParamsType `object`:
packages/swagger-client/src/OperationGenerator.test.tsx#L79
Error: Snapshot `OperationGenerator > [GET] should generate with pathParamsType `object` 1` mismatched
- Expected
+ Received
@@ -27,11 +27,11 @@
],
"path": "showPetById.ts",
"root": "showPetById.ts",
},
],
- "language": undefined,
+ "language": "typescript",
"meta": {
"name": "showPetById",
"pluginKey": undefined,
"tag": "pets",
},
❯ packages/swagger-client/src/OperationGenerator.test.tsx:79:19
|
packages/swagger-client/src/OperationGenerator.test.tsx > OperationGenerator > [GET] should generate with templates:
packages/swagger-client/src/OperationGenerator.test.tsx#L112
Error: Snapshot `OperationGenerator > [GET] should generate with templates 1` mismatched
- Expected
+ Received
@@ -33,11 +33,11 @@
"name": "axios",
"path": "axios",
"root": undefined,
},
],
- "language": undefined,
+ "language": "typescript",
"meta": {
"name": "showPetById",
"pluginKey": undefined,
"tag": "pets",
},
❯ packages/swagger-client/src/OperationGenerator.test.tsx:112:19
|
packages/swagger-faker/src/OperationGenerator.test.tsx > OperationGenerator > [GET] should generate:
packages/swagger-faker/src/OperationGenerator.test.tsx#L43
Error: Snapshot `OperationGenerator > [GET] should generate 1` mismatched
- Expected
+ Received
@@ -36,11 +36,11 @@
],
"path": "ListPets",
"root": "listPets.ts",
},
],
- "language": undefined,
+ "language": "typescript",
"meta": {
"name": "listPets",
"pluginKey": undefined,
"tag": "pets",
},
❯ packages/swagger-faker/src/OperationGenerator.test.tsx:43:19
|
packages/swagger-faker/src/OperationGenerator.test.tsx > OperationGenerator > [GET] should generate with seed `[222]`:
packages/swagger-faker/src/OperationGenerator.test.tsx#L74
Error: Snapshot `OperationGenerator > [GET] should generate with seed `[222]` 1` mismatched
- Expected
+ Received
@@ -36,11 +36,11 @@
],
"path": "ListPets",
"root": "listPets.ts",
},
],
- "language": undefined,
+ "language": "typescript",
"meta": {
"name": "listPets",
"pluginKey": undefined,
"tag": "pets",
},
❯ packages/swagger-faker/src/OperationGenerator.test.tsx:74:19
|
packages/swagger-faker/src/OperationGenerator.test.tsx > OperationGenerator > [POST] should generate:
packages/swagger-faker/src/OperationGenerator.test.tsx#L102
Error: Snapshot `OperationGenerator > [POST] should generate 1` mismatched
- Expected
+ Received
@@ -28,11 +28,11 @@
],
"path": "CreatePets",
"root": "createPets.ts",
},
],
- "language": undefined,
+ "language": "typescript",
"meta": {
"name": "createPets",
"pluginKey": undefined,
"tag": "pets",
},
❯ packages/swagger-faker/src/OperationGenerator.test.tsx:102:19
|
packages/swagger-faker/src/OperationGenerator.test.tsx > OperationGenerator > [DELETE] should generate with unknownType `any`:
packages/swagger-faker/src/OperationGenerator.test.tsx#L129
Error: Snapshot `OperationGenerator > [DELETE] should generate with unknownType `any` 1` mismatched
- Expected
+ Received
@@ -20,11 +20,11 @@
],
"path": "DeletePetPetid",
"root": "delete_pet-petid.ts",
},
],
- "language": undefined,
+ "language": "typescript",
"meta": {
"name": "delete_pet-petid",
"pluginKey": undefined,
"tag": undefined,
},
❯ packages/swagger-faker/src/OperationGenerator.test.tsx:129:19
|
packages/swagger-ts/src/OperationGenerator.test.tsx > OperationGenerator > [GET] /pets with optionalType `questionToken`:
packages/swagger-ts/src/OperationGenerator.test.tsx#L45
Error: Snapshot `OperationGenerator > [GET] /pets with optionalType `questionToken` 1` mismatched
- Expected
+ Received
@@ -12,11 +12,11 @@
],
"path": "Pets",
"root": "listPets.ts",
},
],
- "language": undefined,
+ "language": "typescript",
"meta": {
"name": "listPets",
"pluginKey": undefined,
"tag": "pets",
},
❯ packages/swagger-ts/src/OperationGenerator.test.tsx:45:19
|
packages/swagger-ts/src/OperationGenerator.test.tsx > OperationGenerator > [POST] /pets 201:
packages/swagger-ts/src/OperationGenerator.test.tsx#L75
Error: Snapshot `OperationGenerator > [POST] /pets 201 1` mismatched
- Expected
+ Received
@@ -20,11 +20,11 @@
],
"path": "ErrorCode",
"root": "createPets.ts",
},
],
- "language": undefined,
+ "language": "typescript",
"meta": {
"name": "createPets",
"pluginKey": undefined,
"tag": "pets",
},
❯ packages/swagger-ts/src/OperationGenerator.test.tsx:75:19
|
packages/swagger-ts/src/OperationGenerator.test.tsx > OperationGenerator > [DELETE] /pet/{petId} with unknownType `any`:
packages/swagger-ts/src/OperationGenerator.test.tsx#L104
Error: Snapshot `OperationGenerator > [DELETE] /pet/{petId} with unknownType `any` 1` mismatched
- Expected
+ Received
@@ -3,11 +3,11 @@
"baseName": "delete_pet-petid.ts",
"env": undefined,
"exports": [],
"id": undefined,
"imports": [],
- "language": undefined,
+ "language": "typescript",
"meta": {
"name": "delete_pet-petid",
"pluginKey": undefined,
"tag": undefined,
},
❯ packages/swagger-ts/src/OperationGenerator.test.tsx:104:19
|
Linting
Process completed with exit code 1.
|
Typecheck
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/[email protected], actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/[email protected], actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/[email protected], actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Linting
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/[email protected], actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|