From 596def095af65b0818467038a21e7a6b08dfed9f Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 1 Jul 2024 16:16:19 +0200 Subject: fix swagger `DeviceSchema not found` error --- src/routes/device.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/routes/device.rs b/src/routes/device.rs index f767eab..6f1c371 100644 --- a/src/routes/device.rs +++ b/src/routes/device.rs @@ -44,7 +44,7 @@ pub struct DPayload { path = "/device", request_body = DPayload, responses( - (status = 200, description = "add device to storage", body = [DeviceSchema]) + (status = 200, description = "add device to storage", body = [Device]) ), security((), ("api_key" = [])) )] @@ -77,7 +77,7 @@ pub async fn put(Json(payload): Json) -> Result, Error> { path = "/device", request_body = DPayload, responses( - (status = 200, description = "update device in storage", body = [DeviceSchema]) + (status = 200, description = "update device in storage", body = [Device]) ), security((), ("api_key" = [])) )] -- cgit v1.2.3