Skip to content

Commit

Permalink
fix: Dependency Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-McBride committed Jul 14, 2022
1 parent 35ec6ec commit 03b7c6a
Show file tree
Hide file tree
Showing 4 changed files with 9,354 additions and 16,737 deletions.
18 changes: 9 additions & 9 deletions apps/codegen-e2e/src/graphql-zod-validation/zod-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const EventOptionTypeSchema = z.nativeEnum(EventOptionType);
export function HttpInputSchema(): z.ZodObject<Properties<HttpInput>> {
return z.object({
method: HttpMethodSchema.nullish(),
url: definedNonNullAnySchema
url: z.string()
})
}

Expand All @@ -71,7 +71,7 @@ export function LayoutInputSchema(): z.ZodObject<Properties<LayoutInput>> {
export function PageInputSchema(): z.ZodObject<Properties<PageInput>> {
return z.object({
attributes: z.array(z.lazy(() => AttributeInputSchema())).nullish(),
date: definedNonNullAnySchema.nullish(),
date: z.string().nullish(),
description: z.string().nullish(),
height: z.number(),
id: z.string(),
Expand All @@ -90,7 +90,7 @@ export const PageTypeSchema = z.nativeEnum(PageType);
export function RegisterAddressInputSchema(): z.ZodObject<Properties<RegisterAddressInput>> {
return z.object({
city: z.string(),
ipAddress: definedNonNullAnySchema.nullish(),
ipAddress: z.string().nullish(),
line2: z.string().nullish(),
someBoolean: z.boolean().nullish(),
someNumber: z.number().nullish(),
Expand All @@ -112,16 +112,16 @@ export function TestExampleSchema(): z.ZodObject<Properties<TestExample>> {

export function TestInputSchema(): z.ZodObject<Properties<TestInput>> {
return z.object({
emailArray: z.array(definedNonNullAnySchema.nullable()).nullish(),
emailArrayRequired: z.array(definedNonNullAnySchema.nullable()),
emailRequiredArray: z.array(definedNonNullAnySchema).nullish(),
emailRequiredArrayRequired: z.array(definedNonNullAnySchema),
emailArray: z.array(z.string().email().nullable()).nullish(),
emailArrayRequired: z.array(z.string().email().nullable()),
emailRequiredArray: z.array(z.string().email()).nullish(),
emailRequiredArrayRequired: z.array(z.string().email()),
enum: TestEnumSchema.nullish(),
enumArray: z.array(TestEnumSchema.nullable()).nullish(),
enumArrayRequired: z.array(TestEnumSchema.nullable()),
enumRequired: TestEnumSchema,
scalar: definedNonNullAnySchema.nullish(),
scalarRequired: definedNonNullAnySchema,
scalar: z.string().email().nullish(),
scalarRequired: z.string().email(),
string: z.string().nullish(),
stringArray: z.array(z.string().nullable()).nullish(),
stringArrayRequired: z.array(z.string().nullable()),
Expand Down
7 changes: 7 additions & 0 deletions codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ generates:
schema: zod
importFrom: ../types
useObjectTypes: true
scalarSchemas:
EmailAddress: z.string().email()
IPAddress: z.string()
DateTime: z.string()
JSON: z.object()
Date: z.string()
URL: z.string()
directives:
# Write directives like
#
Expand Down
Loading

0 comments on commit 03b7c6a

Please sign in to comment.