Skip to content

Commit

Permalink
Merge pull request #29 from ShiboSoftwareDev/main
Browse files Browse the repository at this point in the history
pcb_board_id and route_thickness_mode are now optional
  • Loading branch information
ShiboSoftwareDev authored Aug 27, 2024
2 parents b97ec62 + bd05979 commit 6348730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pcb/pcb_board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { point } from "../common"
export const pcb_board = z
.object({
type: z.literal("pcb_board"),
pcb_board_id: z.string().default("pcb_board_0"),
pcb_board_id: z.string().default("pcb_board_0").optional(),
width: length,
height: length,
center: point,
Expand Down
3 changes: 2 additions & 1 deletion src/pcb/pcb_trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const pcb_trace = z.object({
pcb_trace_id: z.string(),
route_thickness_mode: z
.enum(["constant", "interpolated"])
.default("interpolated"),
.default("interpolated")
.optional(),
should_round_corners: z.boolean().optional(),
route: z.array(
z.union([
Expand Down

0 comments on commit 6348730

Please sign in to comment.