Ergänze Erntefest und Adventskalender mit Flyer
Deploy / validate-dispatch (push) Successful in 2s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 6s
Deploy / context (push) Successful in 1s
Deploy / app-quality (push) Successful in 1m28s
Deploy / secret-scan (push) Successful in 5s
Deploy / security-deps (push) Successful in 14s
Deploy / app-image (push) Successful in 1m9s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 15s
Deploy / validate-dispatch (push) Successful in 2s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 6s
Deploy / context (push) Successful in 1s
Deploy / app-quality (push) Successful in 1m28s
Deploy / secret-scan (push) Successful in 5s
Deploy / security-deps (push) Successful in 14s
Deploy / app-image (push) Successful in 1m9s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 15s
This commit is contained in:
@@ -12,7 +12,9 @@ export const eventSchema = z.object({
|
||||
id: z.string().min(1), slug: z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/), title: z.string().min(1),
|
||||
summary: z.string().optional(), startDate: isoDate, startTime: time.optional(), endDate: isoDate.optional(), endTime: time.optional(),
|
||||
timezone: z.literal("Europe/Berlin"), location: z.string().optional(), organizer: z.string().optional(),
|
||||
sourceUrl: z.string().url().optional(), sourceName: z.string().optional(), lastVerified: isoDate,
|
||||
details: z.array(z.string().min(1)).optional(),
|
||||
flyer: z.object({ src: z.string().startsWith("/images/events/"), alt: z.string().min(1), section: z.enum(["top", "bottom"]) }).optional(),
|
||||
sourceUrl: z.union([z.string().url(), z.string().regex(/^\/(?!\/)[^\s]*$/)]).optional(), sourceName: z.string().optional(), lastVerified: isoDate,
|
||||
status: z.enum(["verified", "dynamic", "needs-verification", "archived"]), privacyApproved: z.boolean().optional(),
|
||||
}).superRefine((event, context) => {
|
||||
if ((event.endDate ?? event.startDate) < event.startDate) context.addIssue({ code: "custom", message: "Das Enddatum liegt vor dem Startdatum." });
|
||||
|
||||
Reference in New Issue
Block a user