Skip to content

Commit 422cb1f

Browse files
authored
chore: mv zod-to-json-schema (#9380)
## Summary Move into subfolder. Rename to `zod3ToJsonSchema`. Limit exports.
1 parent e55dde9 commit 422cb1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+52
-88
lines changed

packages/provider-utils/src/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { arktypeToJsonSchema } from './to-json-schema/arktype-to-json-schema';
66
import { effectToJsonSchema } from './to-json-schema/effect-to-json-schema';
77
import { valibotToJsonSchema } from './to-json-schema/valibot-to-json-schema';
88
import { Validator, validatorSymbol, type ValidationResult } from './validator';
9-
import zodToJsonSchema from './zod-to-json-schema';
9+
import { zod3ToJsonSchema } from './to-json-schema/zod3-to-json-schema';
1010

1111
/**
1212
* Used to mark schemas so we can support both Zod and custom schemas.
@@ -210,7 +210,7 @@ export function zod3Schema<OBJECT>(
210210
return jsonSchema(
211211
// defer json schema creation to avoid unnecessary computation when only validation is needed
212212
() =>
213-
zodToJsonSchema(zodSchema, {
213+
zod3ToJsonSchema(zodSchema, {
214214
$refStrategy: useReferences ? 'root' : 'none',
215215
}) as JSONSchema7,
216216
{
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { zod3ToJsonSchema } from './zod3-to-json-schema';

0 commit comments

Comments
 (0)