Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
1.0 kB ยท 36 lines
TypeScript
at incident-api
12345678910111213141516171819202122232425262728293031323334353637import { z } from "@hono/zod-openapi";import { statusReportStatus } from "@openstatus/db/src/schema";
export const ParamsSchema = z.object({ id: z .string() .min(1) .openapi({ param: { name: "id", in: "path", }, description: "The id of the update", example: "1", }),});
export const StatusReportUpdateSchema = z .object({ id: z.coerce.string().openapi({ description: "The id of the update" }), status: z.enum(statusReportStatus).openapi({ description: "The status of the update", }), date: z.coerce.date().prefault(new Date()).openapi({ description: "The date of the update in ISO8601 format", }), message: z.string().min(1).openapi({ description: "The message of the update", }), statusReportId: z.number().openapi({ description: "The id of the status report", }), }) .openapi("StatusReportUpdate");
export type StatusReportUpdateSchema = z.infer<typeof StatusReportUpdateSchema>;