fix(api): the supplier SBOM check describes its enveloped answer (#1025)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m56s
CI / Check (pull_request) Successful in 21m23s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-17 09:35:18 +01:00
1 parent 187b1c35c6
commit 9094d721d2
1 file changed
+4 -4
@@ -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"),