From ff286fd8e354f7fd80321152f5268501ee6d99e3 Mon Sep 17 00:00:00 2001 From: Ed Bordin Date: Tue, 21 May 2024 16:14:41 +1000 Subject: [PATCH] fix native enums --- package.json | 2 +- src/helpers/get-field-info-from-zod.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0076bb1..2e0b95f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nestjs-graphql-zod", - "version": "3.3.0", + "version": "3.4.0", "description": "A library for integrating zod validation objects into nestjs graphql objects.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/helpers/get-field-info-from-zod.ts b/src/helpers/get-field-info-from-zod.ts index 5e67ef6..dd5b1d4 100644 --- a/src/helpers/get-field-info-from-zod.ts +++ b/src/helpers/get-field-info-from-zod.ts @@ -307,6 +307,7 @@ export module getFieldInfoFromZod { ZodBoolean, ZodDefault, ZodEnum, + ZodNativeEnum, ZodNullable, ZodNumber, ZodObject,