fix: add 403 response to confirm/dismiss OpenAPI annotations
Some checks failed
CI / Check / Test (push) Failing after 6m22s
Some checks failed
CI / Check / Test (push) Failing after 6m22s
This commit is contained in:
@@ -265,6 +265,7 @@ pub async fn get_watch_queue(
|
|||||||
responses(
|
responses(
|
||||||
(status = 200, body = ConfirmWatchResponse),
|
(status = 200, body = ConfirmWatchResponse),
|
||||||
(status = 401, description = "Unauthorized"),
|
(status = 401, description = "Unauthorized"),
|
||||||
|
(status = 403, description = "Forbidden — not your watch event"),
|
||||||
),
|
),
|
||||||
security(("bearer_auth" = []))
|
security(("bearer_auth" = []))
|
||||||
)]
|
)]
|
||||||
@@ -296,6 +297,7 @@ pub async fn post_confirm_watch_events(
|
|||||||
responses(
|
responses(
|
||||||
(status = 200, body = DismissWatchResponse),
|
(status = 200, body = DismissWatchResponse),
|
||||||
(status = 401, description = "Unauthorized"),
|
(status = 401, description = "Unauthorized"),
|
||||||
|
(status = 403, description = "Forbidden — not your watch event"),
|
||||||
),
|
),
|
||||||
security(("bearer_auth" = []))
|
security(("bearer_auth" = []))
|
||||||
)]
|
)]
|
||||||
|
|||||||
Reference in New Issue
Block a user