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.
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
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 main2026-11-16 16:42:47 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
routes!and described by#[utoipa::path]: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.SbomFilter,SbomExportParams,SbomDiffParams,SbomQualityParams,WithdrawQuery,CheckQueryandNoticesQuery.ConcludeRequest,ComponentRefandReviewRequest.valid_untilis a date string.undescribed_routes.txtgoes from 82 to 71 paths.Checks
cargo fmt --checkand clippy with the CI flags pass.api_key_access.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9