summaryrefslogtreecommitdiff
path: root/src/schemas.ts
diff options
context:
space:
mode:
authorseth <[email protected]>2024-10-12 14:28:54 -0400
committerseth <[email protected]>2024-10-12 14:59:04 -0400
commit6a2d9e752fab27b59da4f194b0ef6daf7e8b6d81 (patch)
treeed8f9f07861a0a4463dcd910baa349b6cc6656aa /src/schemas.ts
parent08912b439bd61088dd849b9342a81341fa9e4a23 (diff)
port to deno
Diffstat (limited to 'src/schemas.ts')
-rw-r--r--src/schemas.ts34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/schemas.ts b/src/schemas.ts
deleted file mode 100644
index 669674a..0000000
--- a/src/schemas.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import { z } from "@hono/zod-openapi";
-
-const ErrorResponse = z.string().optional().openapi({
- description: "Error message reported by server",
-});
-
-const TeawieURLResponse = z.object({
- url: z.string().url().optional().openapi({
- description: "URL to Teawie",
- }),
-
- error: ErrorResponse,
-});
-
-export const ListTeawiesParams = z.object({
- limit: z
- .string()
- .optional()
- .default("5")
- .refine((data) => {
- const parsed = parseInt(data);
- return !isNaN(parsed);
- })
- .openapi({
- description: "Maximum number of Teawie URLs to be returned",
- }),
-});
-
-export const ListTeawiesResponse = z.object({
- urls: z.array(z.string().url()).optional(),
- error: ErrorResponse,
-});
-
-export const RandomTeawiesResponse = TeawieURLResponse;