Skip to content

chore(openapi): [main] update client/openapi/trustd.yaml#1135

Merged
carlosthe19916 merged 1 commit into
mainfrom
create-pull-request/patch-662165e
Jul 2, 2026
Merged

chore(openapi): [main] update client/openapi/trustd.yaml#1135
carlosthe19916 merged 1 commit into
mainfrom
create-pull-request/patch-662165e

Conversation

@trustify-ci-bot

@trustify-ci-bot trustify-ci-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The openapi.yaml of trustify has changed

Summary by Sourcery

Update the trustd OpenAPI specification to expose advisory severity summaries for SBOMs.

New Features:

  • Add an optional query parameter to include advisory severity summaries in SBOM search results.

Enhancements:

  • Introduce a reusable RequestedField_HashMap_HashMap schema and wire it into multiple response objects to represent advisory severity data.

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@sourcery-ai

sourcery-ai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Updates the trustd OpenAPI spec to expose advisory severity summary data for SBOMs via a new query parameter and reusable hash-map schema, and wires this field into several SBOM-related response objects.

File-Level Changes

Change Details Files
Add an optional query parameter to request advisory severity summaries in SBOM search endpoints.
  • Introduce an advisories boolean query parameter with description and schema in the relevant SBOM search path
client/openapi/trustd.yaml
Extend SBOM-related response object schemas to include an advisories field referencing a shared hash-map schema.
  • Add advisories property to multiple SBOM response components, marked as a RequestedField reference
  • Ensure advisories is not added to the required property list, keeping it optional
client/openapi/trustd.yaml
Define a reusable RequestedField_HashMap_HashMap schema representing advisory severity counts keyed by severity level.
  • Introduce RequestedField_HashMap_HashMap in components/schemas as a nullable object
  • Configure additionalProperties as non-negative int64 counts
  • Constrain propertyNames to a documented severity enum: unknown, none, low, medium, high, critical
client/openapi/trustd.yaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.10%. Comparing base (662165e) to head (a4da59c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1135      +/-   ##
==========================================
+ Coverage   53.08%   53.10%   +0.01%     
==========================================
  Files         270      270              
  Lines        5879     5879              
  Branches     1843     1843              
==========================================
+ Hits         3121     3122       +1     
+ Misses       2455     2454       -1     
  Partials      303      303              
Flag Coverage Δ
e2e 70.70% <ø> (+0.02%) ⬆️
unit 6.97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@carlosthe19916 carlosthe19916 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Auto-approved

Only client/openapi/trustd.yaml changed — no manual review required.

@carlosthe19916 carlosthe19916 added this pull request to the merge queue Jul 2, 2026
Merged via the queue into main with commit 4808564 Jul 2, 2026
18 of 19 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Trustify Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant