Skip to content

Commit

Permalink
removing unused schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
cdleveille committed Nov 6, 2024
1 parent 1cfb7aa commit fff5280
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
17 changes: 0 additions & 17 deletions src/helpers/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,6 @@ export const discQuerySchema = z.object({
stability: z.string().optional()
});

export const regexifySchema = z.object({
$regex: z.string(),
$options: z.string()
});

export const discFilterSchema = z.object({
id: z.string().optional(),
name_slug: regexifySchema.optional(),
brand_slug: regexifySchema.optional(),
category_slug: regexifySchema.optional(),
speed: z.string().optional(),
glide: z.string().optional(),
turn: z.string().optional(),
fade: z.string().optional(),
stability_slug: z.string().optional()
});

export const bagSchema = z.object({
id: z.string(),
name: z.string(),
Expand Down
4 changes: 1 addition & 3 deletions src/types/abstract/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { bagSchema, discFilterSchema, discQuerySchema, discSchema } from "@helpers";
import { bagSchema, discQuerySchema, discSchema } from "@helpers";
import { z } from "@hono/zod-openapi";

export type TBase = {
Expand All @@ -10,6 +10,4 @@ export type TDisc = z.infer<typeof discSchema>;

export type TDiscQuery = z.infer<typeof discQuerySchema>;

export type TDiscFilter = z.infer<typeof discFilterSchema>;

export type TBag = z.infer<typeof bagSchema>;

0 comments on commit fff5280

Please sign in to comment.