fix: post / patch attendees docs w examples

This commit is contained in:
Agusti Fernandez Pardo committed 2022-04-27 19:25:36 +02:00
1 parent 14e2964a6d
commit e52af0bbef
55 files changed
+246 -233

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
import * as tzdb 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));