Schema generator for Zod and Faker plugin #146
Annotations
3 errors and 4 warnings
packages/swagger-ts/src/OperationGenerator.test.tsx > OperationGenerator > [POST] /pets 201:
packages/swagger-ts/src/OperationGenerator.test.tsx#L85
Error: Snapshot `OperationGenerator > [POST] /pets 201 1` mismatched
- Expected
+ Received
@@ -2,14 +2,19 @@
import type { ErrorCode } from "./ErrorCode";
/**
* @description Null response
*/
- export type CreatePetsMutationResponse = (Error & {
+ export type CreatePets201 = (Error & {
name?: ErrorCode;
});
+ /**
+ * @description unexpected error
+ */
+ export type CreatePetsError = Error;
+
export type CreatePetsMutationRequest = {
/**
* @type string
*/
name: string;
@@ -20,11 +25,11 @@
};
/**
* @description Null response
*/
- export type CreatePets201 = (Error & {
+ export type CreatePetsMutationResponse = (Error & {
name?: ErrorCode;
});
export type CreatePetsMutation = {
Response: CreatePetsMutationResponse;
❯ packages/swagger-ts/src/OperationGenerator.test.tsx:85:43
❯ packages/swagger-ts/src/OperationGenerator.test.tsx:84:11
|
Tests
Process completed with exit code 1.
|
Linting
Process completed with exit code 134.
|
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/.
|
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/.
|
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/.
|