Skip to content

🌱 [main] update client/openapi/trustd.yaml#1007

Merged
carlosthe19916 merged 1 commit intomainfrom
create-pull-request/patch-f2d765d
Apr 29, 2026
Merged

🌱 [main] update client/openapi/trustd.yaml#1007
carlosthe19916 merged 1 commit intomainfrom
create-pull-request/patch-f2d765d

Conversation

@trustify-ci-bot
Copy link
Copy Markdown
Contributor

@trustify-ci-bot trustify-ci-bot Bot commented Apr 20, 2026

The openapi.yaml of trustify has changed

Summary by Sourcery

Update trustd OpenAPI specification with a new SBOM models listing endpoint and version bump.

New Features:

  • Add /api/v2/sbom/models endpoint for searching and listing AI models with query, sorting, and pagination parameters.

Enhancements:

  • Bump trustd API version from 0.5.0-beta.1 to 0.5.0-beta.2 in the OpenAPI spec.

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

sourcery-ai Bot commented Apr 20, 2026

Reviewer's Guide

Updates the generated Trustd OpenAPI client specification to version 0.5.0-beta.2 and adds a new paginated /api/v2/sbom/models search endpoint for AI models, including rich query, sorting, and pagination parameters.

Sequence diagram for the new /api/v2/sbom/models AI model search endpoint

sequenceDiagram
  actor ApiConsumer
  participant ClientSdk
  participant TrustdApi

  ApiConsumer->>ClientSdk: listAllModels(q, sort, offset, limit)
  ClientSdk->>TrustdApi: GET /api/v2/sbom/models?q&sort&offset&limit
  TrustdApi-->>ClientSdk: 200 PaginatedResults_SbomModel
  ClientSdk-->>ApiConsumer: Paginated SbomModel list with metadata
Loading

File-Level Changes

Change Details Files
Bump Trustd OpenAPI spec version to 0.5.0-beta.2.
  • Update the OpenAPI info.version field from 0.5.0-beta.1 to 0.5.0-beta.2 to align with the upstream trustify API specification.
client/openapi/trustd.yaml
Add new AI models search endpoint to the SBOM API.
  • Introduce GET /api/v2/sbom/models path under the sbom tag with summary 'Search for all AI models' and operationId listAllModels.
  • Define rich text-search query parameter q using documented EBNF grammar and examples for filters, operators, and escaping.
  • Add sort query parameter with EBNF-based syntax for field ordering including JSON sub-field addressing via ':' notation.
  • Add offset and limit pagination query parameters with int64 types and minimum 0 constraints.
  • Specify 200 response returning JSON body referencing components.schemas.PaginatedResults_SbomModel.
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

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • The q, sort, offset, and limit query parameter definitions appear to duplicate patterns used elsewhere; consider extracting them into reusable components.parameters entries to avoid drift and keep the spec DRY.
  • The new /api/v2/sbom/models endpoint is tagged sbom but described as listing AI models; verify that the tag and summary/description align with the intended domain to avoid confusion for API consumers.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The `q`, `sort`, `offset`, and `limit` query parameter definitions appear to duplicate patterns used elsewhere; consider extracting them into reusable `components.parameters` entries to avoid drift and keep the spec DRY.
- The new `/api/v2/sbom/models` endpoint is tagged `sbom` but described as listing AI models; verify that the tag and summary/description align with the intended domain to avoid confusion for API consumers.

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
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.83%. Comparing base (f2d765d) to head (0d15176).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1007      +/-   ##
==========================================
- Coverage   68.41%   66.83%   -1.59%     
==========================================
  Files         223      223              
  Lines        3920     3920              
  Branches      910      910              
==========================================
- Hits         2682     2620      -62     
- Misses        887      953      +66     
+ Partials      351      347       -4     

☔ View full report in Codecov by Sentry.
📢 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 added this pull request to the merge queue Apr 29, 2026
Merged via the queue into main with commit f5a90dc Apr 29, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant