@@ -60,6 +60,7 @@ func (a *API) registerJobRoutes(router forge.Router) {
6060 forge .WithSummary ("Get job" ),
6161 forge .WithDescription ("Returns details of a specific job." ),
6262 forge .WithOperationID ("getJob" ),
63+ forge .WithRequestSchema (GetJobRequest {}),
6364 forge .WithResponseSchema (http .StatusOK , "Job details" , & job.Job {}),
6465 forge .WithErrorResponses (),
6566 )
@@ -68,6 +69,7 @@ func (a *API) registerJobRoutes(router forge.Router) {
6869 forge .WithSummary ("Cancel job" ),
6970 forge .WithDescription ("Cancels a pending or retrying job." ),
7071 forge .WithOperationID ("cancelJob" ),
72+ forge .WithRequestSchema (CancelJobRequest {}),
7173 forge .WithNoContentResponse (),
7274 forge .WithErrorResponses (),
7375 )
@@ -106,6 +108,7 @@ func (a *API) registerWorkflowRoutes(router forge.Router) {
106108 forge .WithSummary ("Get workflow run" ),
107109 forge .WithDescription ("Returns details of a specific workflow run." ),
108110 forge .WithOperationID ("getWorkflowRun" ),
111+ forge .WithRequestSchema (GetWorkflowRunRequest {}),
109112 forge .WithResponseSchema (http .StatusOK , "Workflow run details" , & workflow.Run {}),
110113 forge .WithErrorResponses (),
111114 )
@@ -128,14 +131,16 @@ func (a *API) registerDLQRoutes(router forge.Router) {
128131 forge .WithSummary ("Get DLQ entry" ),
129132 forge .WithDescription ("Returns details of a specific DLQ entry." ),
130133 forge .WithOperationID ("getDLQ" ),
134+ forge .WithRequestSchema (GetDLQRequest {}),
131135 forge .WithResponseSchema (http .StatusOK , "DLQ entry details" , & dlq.Entry {}),
132136 forge .WithErrorResponses (),
133137 )
134138
135139 _ = g .POST ("/dlq/:entryId/replay" , a .replayDLQ ,
136140 forge .WithSummary ("Replay DLQ entry" ),
137141 forge .WithDescription ("Re-enqueues a DLQ entry as a new pending job." ),
138- forge .WithOperationID ("replayDLQ" ),
142+ forge .WithOperationID ("dispatchReplayDLQ" ),
143+ forge .WithRequestSchema (ReplayDLQRequest {}),
139144 forge .WithCreatedResponse (& job.Job {}),
140145 forge .WithErrorResponses (),
141146 )
@@ -174,6 +179,7 @@ func (a *API) registerCronRoutes(router forge.Router) {
174179 forge .WithSummary ("Get cron entry" ),
175180 forge .WithDescription ("Returns details of a specific cron entry." ),
176181 forge .WithOperationID ("getCron" ),
182+ forge .WithRequestSchema (GetCronRequest {}),
177183 forge .WithResponseSchema (http .StatusOK , "Cron entry details" , & cron.Entry {}),
178184 forge .WithErrorResponses (),
179185 )
@@ -182,6 +188,7 @@ func (a *API) registerCronRoutes(router forge.Router) {
182188 forge .WithSummary ("Enable cron entry" ),
183189 forge .WithDescription ("Enables a disabled cron entry." ),
184190 forge .WithOperationID ("enableCron" ),
191+ forge .WithRequestSchema (EnableCronRequest {}),
185192 forge .WithResponseSchema (http .StatusOK , "Enabled cron entry" , & cron.Entry {}),
186193 forge .WithErrorResponses (),
187194 )
@@ -190,6 +197,7 @@ func (a *API) registerCronRoutes(router forge.Router) {
190197 forge .WithSummary ("Disable cron entry" ),
191198 forge .WithDescription ("Disables a cron entry so it no longer fires." ),
192199 forge .WithOperationID ("disableCron" ),
200+ forge .WithRequestSchema (DisableCronRequest {}),
193201 forge .WithResponseSchema (http .StatusOK , "Disabled cron entry" , & cron.Entry {}),
194202 forge .WithErrorResponses (),
195203 )
@@ -198,6 +206,7 @@ func (a *API) registerCronRoutes(router forge.Router) {
198206 forge .WithSummary ("Delete cron entry" ),
199207 forge .WithDescription ("Permanently removes a cron entry." ),
200208 forge .WithOperationID ("deleteCron" ),
209+ forge .WithRequestSchema (DeleteCronRequest {}),
201210 forge .WithNoContentResponse (),
202211 forge .WithErrorResponses (),
203212 )
0 commit comments