feat: add operationId for autogenerated sdk

This commit is contained in:
Agusti Fernandez Pardo committed 2022-05-05 18:18:00 +02:00
1 parent 1f2b59c18d
commit 08eeb36d47
26 files changed
+323 -180

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import * as tzdb from "tzdata";
import tzdata from "tzdata";
import * as z from "zod";
// @note: This is a custom validation that checks if the timezone is valid and exists in the tzdb library
export const timeZone = z.string().refine((tz: string) => Object.keys(tzdb.zones).includes(tz));
export const timeZone = z.string().refine((tz: string) => Object.keys(tzdata.zones).includes(tz));