We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8661f9e commit 91791d6Copy full SHA for 91791d6
src/utils/ZodModel.ts
@@ -1,4 +1,4 @@
1
import { z } from 'zod';
2
3
-export const NonEmptyZodString = z.string().min(1);
4
-export const CfnNameZodString = z.string().min(1).max(128);
+export const NonEmptyZodString = z.string().trim().min(1);
+export const CfnNameZodString = z.string().trim().min(1).max(128);
0 commit comments