Skip to content

Commit

Permalink
feat: Add pcb_hole_id to pcb_hole schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name (aider) committed Sep 5, 2024
1 parent 2058221 commit 3b0c7b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pcb/pcb_hole.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { z } from "zod"
import { distance } from "../units"
import { uuid } from "../common/uuid"

export const pcb_hole = z
.object({
pcb_hole_id: uuid,
type: z.literal("pcb_hole"),
hole_shape: z.enum(["round", "square"]).default("round"),
hole_diameter: z.number(),
Expand All @@ -11,6 +13,7 @@ export const pcb_hole = z
})
.or(
z.object({
pcb_hole_id: uuid,
type: z.literal("pcb_hole"),
hole_shape: z.literal("oval"),
hole_width: z.number(),
Expand Down

0 comments on commit 3b0c7b0

Please sign in to comment.