Skip to content

Commit 9405ff6

Browse files
committed
use v3 import
1 parent bf40c71 commit 9405ff6

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

packages/plugins/openapi/src/generator-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Model } from '@zenstackhq/sdk/ast';
33
import type { DMMF } from '@zenstackhq/sdk/prisma';
44
import type { OpenAPIV3_1 as OAPI } from 'openapi-types';
55
import semver from 'semver';
6-
import { fromZodError } from 'zod-validation-error';
6+
import { fromZodError } from 'zod-validation-error/v3';
77
import { name } from '.';
88
import { SecuritySchemesSchema } from './schema';
99

packages/runtime/src/enhancements/node/policy/handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22

33
import deepmerge from 'deepmerge';
4-
import { fromZodError } from 'zod-validation-error';
4+
import { fromZodError } from 'zod-validation-error/v3';
55
import { CrudFailureReason } from '../../../constants';
66
import {
77
ModelDataVisitor,
@@ -15,7 +15,7 @@ import {
1515
type FieldInfo,
1616
type ModelMeta,
1717
} from '../../../cross';
18-
import { lowerCaseFirst, upperCaseFirst, invariant } from '../../../local-helpers';
18+
import { invariant, lowerCaseFirst, upperCaseFirst } from '../../../local-helpers';
1919
import { EnhancementContext, PolicyOperationKind, type CrudContract, type DbClientContract } from '../../../types';
2020
import type { InternalEnhancementOptions } from '../create-enhancement';
2121
import { Logger } from '../logger';

packages/runtime/src/enhancements/node/policy/policy-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import deepmerge from 'deepmerge';
44
import { z, type ZodError, type ZodObject, type ZodSchema } from 'zod';
5-
import { fromZodError } from 'zod-validation-error';
5+
import { fromZodError } from 'zod-validation-error/v3';
66
import { CrudFailureReason, PrismaErrorCode } from '../../../constants';
77
import {
88
clone,

packages/runtime/src/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { z } from 'zod';
2-
import { fromZodError } from 'zod-validation-error';
2+
import { fromZodError } from 'zod-validation-error/v3';
33

44
/**
55
* Error indicating violations of field-level constraints

packages/schema/src/cli/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'fs';
22
import z, { ZodError } from 'zod';
3-
import { fromZodError } from 'zod-validation-error';
3+
import { fromZodError } from 'zod-validation-error/v3';
44
import { CliError } from './cli-error';
55

66
// TODO: future use

packages/server/src/api/rest/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import SuperJSON from 'superjson';
1616
import { Linker, Paginator, Relator, Serializer, SerializerOptions } from 'ts-japi';
1717
import UrlPattern from 'url-pattern';
1818
import z, { ZodError } from 'zod';
19-
import { fromZodError } from 'zod-validation-error';
19+
import { fromZodError } from 'zod-validation-error/v3';
2020
import { LoggerConfig, Response } from '../../types';
2121
import { APIHandlerBase, RequestContext } from '../base';
2222
import { logWarning, registerCustomSerializers } from '../utils';

packages/server/src/api/rpc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import { upperCaseFirst } from '@zenstackhq/runtime/local-helpers';
1111
import SuperJSON from 'superjson';
1212
import { ZodError } from 'zod';
13-
import { fromZodError } from 'zod-validation-error';
13+
import { fromZodError } from 'zod-validation-error/v3';
1414
import { Response } from '../../types';
1515
import { APIHandlerBase, RequestContext } from '../base';
1616
import { logError, registerCustomSerializers } from '../utils';

0 commit comments

Comments
 (0)