From 5800e0fab3b77aa752f83d3cdb87db208e3665b5 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Sat, 28 Nov 2026 12:28:15 +0100 Subject: [PATCH] fix(api): device route summaries fit the OpenAPI rule Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9 --- compliance-agent/src/api/handlers/devices.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/compliance-agent/src/api/handlers/devices.rs b/compliance-agent/src/api/handlers/devices.rs index 04cd78d..72e273e 100644 --- a/compliance-agent/src/api/handlers/devices.rs +++ b/compliance-agent/src/api/handlers/devices.rs @@ -51,8 +51,9 @@ fn checks(devices: Vec, advisories: &[Advisory]) -> Vec .collect() } -/// The Siemens controllers target `id` runs on, each with the advisories -/// naming it. +/// The Siemens controllers a target runs on. +/// +/// Each with the Siemens advisories naming it. #[utoipa::path( get, path = "/api/v1/targets/{id}/devices", @@ -107,8 +108,10 @@ pub struct LookupParams { pub order_number: String, } -/// What Siemens' advisories know of an order number, to recognise it while -/// it is typed. Public data only: nothing of the tenant is read. +/// What Siemens' advisories know of an order number. +/// +/// For recognising one while it is typed. Public data only: nothing of the +/// tenant is read. #[utoipa::path( get, path = "/api/v1/devices/lookup",