Skip to content

Commit 48a1f39

Browse files
nickmeinholdclaude
andauthored
fix(api): add missing openapi meta to checklist.update (#417)
The checklist.update procedure was inheriting the default protectedProcedure meta (GET /protected) instead of declaring its own OpenAPI route, making it unreachable via the REST API. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c7fce10 commit 48a1f39

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/api/src/routers/checklist.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ export const checklistRouter = createTRPCRouter({
8181
return newChecklist;
8282
}),
8383
update: protectedProcedure
84+
.meta({
85+
openapi: {
86+
summary: "Update a checklist",
87+
method: "PUT",
88+
path: "/checklists/{checklistPublicId}",
89+
description: "Updates a checklist by its public ID",
90+
tags: ["Cards"],
91+
protect: true,
92+
},
93+
})
8494
.input(
8595
z.object({
8696
checklistPublicId: z.string().length(12),

0 commit comments

Comments
 (0)