feat(api): the OpenAPI description covers the SBOM and licence routes (#1006) #1016

Merged
sharang merged 1 commits from feat/openapi-sbom into main 2026-11-16 16:42:47 +00:00
Owner

Part of #1006: the next group of the OpenAPI description, the SBOM and licence routes. The CVE and VEX routes come after #994 (#1015), which changes the same handlers.

What changes

  • The 11 paths (15 operations) are registered through routes! and described by #[utoipa::path]:
    • SBOM: the component list (filters, page, limit), its filter values, the CycloneDX/SPDX export, the licence summary, the quality score, the diff of two targets, and the third-party notices.
    • Licences: confirmed licences (list, confirm, withdraw), the policy (read, replace), the policy check, and the legal review (decide, withdraw).
  • Query schemas: SbomFilter, SbomExportParams, SbomDiffParams, SbomQualityParams, WithdrawQuery, CheckQuery and NoticesQuery.
  • Body schemas: ConcludeRequest, ComponentRef and ReviewRequest.
  • Core types stay opaque strings, and the policy body is an object. valid_until is a date string.
  • Handlers that had no doc comment got a one-line summary.
  • undescribed_routes.txt goes from 82 to 71 paths.

Checks

  • cargo fmt --check and clippy with the CI flags pass.
  • The agent's API unit tests pass (129).
  • Every agent integration test binary passes against Mongo 7, including api_key_access.
  • I dumped the spec and checked each operation's summary, parameters and body.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of #1006: the next group of the OpenAPI description, the SBOM and licence routes. The CVE and VEX routes come after #994 (#1015), which changes the same handlers. ## What changes - The 11 paths (15 operations) are registered through `routes!` and described by `#[utoipa::path]`: - **SBOM:** the component list (filters, `page`, `limit`), its filter values, the CycloneDX/SPDX export, the licence summary, the quality score, the diff of two targets, and the third-party notices. - **Licences:** confirmed licences (list, confirm, withdraw), the policy (read, replace), the policy check, and the legal review (decide, withdraw). - Query schemas: `SbomFilter`, `SbomExportParams`, `SbomDiffParams`, `SbomQualityParams`, `WithdrawQuery`, `CheckQuery` and `NoticesQuery`. - Body schemas: `ConcludeRequest`, `ComponentRef` and `ReviewRequest`. - Core types stay opaque strings, and the policy body is an object. `valid_until` is a date string. - Handlers that had no doc comment got a one-line summary. - `undescribed_routes.txt` goes from 82 to 71 paths. ## Checks - `cargo fmt --check` and clippy with the CI flags pass. - The agent's API unit tests pass (129). - Every agent integration test binary passes against Mongo 7, including `api_key_access`. - I dumped the spec and checked each operation's summary, parameters and body. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang added 1 commit 2026-11-16 15:54:04 +00:00
feat(api): the OpenAPI description covers the SBOM and licence routes (#1006)
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 4m57s
CI / Check (pull_request) Successful in 20m49s
4bec2a7cdb
The 11 SBOM and licence paths (15 operations) are described from their
handlers: the component list and its filters, the export, licence
summary, quality score, diff and third-party notices (tag "SBOM"), and
confirmed licences, the licence policy, the check and the legal review
(tag "Licences"). Query parameters and request bodies are schemas; core
types stay opaque strings or objects, the policy body an object.
undescribed_routes.txt drops to 71 paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang merged commit bde53a96dd into main 2026-11-16 16:42:47 +00:00
sharang deleted branch feat/openapi-sbom 2026-11-16 16:42:47 +00:00
Sign in to join this conversation.