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>
This commit is contained in:
@@ -81,6 +81,16 @@ export const checklistRouter = createTRPCRouter({
|
|||||||
return newChecklist;
|
return newChecklist;
|
||||||
}),
|
}),
|
||||||
update: protectedProcedure
|
update: protectedProcedure
|
||||||
|
.meta({
|
||||||
|
openapi: {
|
||||||
|
summary: "Update a checklist",
|
||||||
|
method: "PUT",
|
||||||
|
path: "/checklists/{checklistPublicId}",
|
||||||
|
description: "Updates a checklist by its public ID",
|
||||||
|
tags: ["Cards"],
|
||||||
|
protect: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
.input(
|
.input(
|
||||||
z.object({
|
z.object({
|
||||||
checklistPublicId: z.string().length(12),
|
checklistPublicId: z.string().length(12),
|
||||||
|
|||||||
Reference in New Issue
Block a user