diff --git a/compliance-agent/src/api/handlers/onboarding.rs b/compliance-agent/src/api/handlers/onboarding.rs index 02196a8..2f3861c 100644 --- a/compliance-agent/src/api/handlers/onboarding.rs +++ b/compliance-agent/src/api/handlers/onboarding.rs @@ -1045,10 +1045,9 @@ pub const SBOM_STATEMENTS_FACT: &str = "sbom_statements"; /// What a readable supplier SBOM holds (#1025): what the wizard shows when the /// file is added, and what its upload keeps with the artifact. -#[derive(Debug, Clone, PartialEq, Eq, Serialize, utoipa::ToSchema)] +#[derive(Debug, Clone, PartialEq, Eq, Serialize)] pub struct SupplierSbomSummary { /// The format and its version, such as `CycloneDX 1.5` or `SPDX 2.3`. - #[schema(example = "CycloneDX 1.5")] pub format: String, /// The components it lists, nested ones included. pub components: usize, @@ -1114,7 +1113,8 @@ pub struct CheckSupplierSbomForm { /// Check a supplier SBOM before any target holds it. /// /// Reads the file as an upload of kind `supplier_sbom` would, and says what -/// it holds or why it is refused, so the onboarding wizard can refuse a file +/// it holds (`data`: `format`, `components`, `statements`) or why it is +/// refused, so the onboarding wizard can refuse a file /// when it is added, before the target exists (#1025). Nothing is stored. /// /// A refusal is `{"error": …, "code": …}`, the code one of `too_large`, @@ -1125,7 +1125,7 @@ pub struct CheckSupplierSbomForm { tag = "Targets", request_body(content = CheckSupplierSbomForm, content_type = "multipart/form-data"), responses( - (status = 200, description = "What the SBOM holds", body = SupplierSbomSummary), + (status = 200, description = "What the SBOM holds"), (status = 400, description = "No file, or more than one"), (status = 413, description = "The file is over 20 MiB"), (status = 422, description = "Not a supplier SBOM that can be read; `error` and `code` say why"),