fix(openapi): wrap Model Catalog responses in data envelope #3351
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.25) × (1 − Review Confidence (0.79)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.25 · 42 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.68 · 3 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.225
Real PR Conversation Timeline
7 items
Approved
/lgtm
/cc @manaswinidas
Approved
Approved these changes.
@Gkrumbach07: changing LGTM is restricted to collaborators
<details>
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
</details>
Approved
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/kubeflow/hub/pull/3351#pullrequestreview-5535890293" title="Approved">lucferbux</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
Philip-Carneiro
antowaddle
Problem
The Model Catalog BFF handlers return payloads inside a required
dataenvelope, but the hand-maintained OpenAPI response components currently point directly to the raw catalog schemas. This causes schema/implementation drift and makes consumer contract tests fail when they validate against the published spec.Change
Wrap the following Model Catalog response schemas in the same required
dataenvelope emitted by the BFF:CatalogModelListResponseCatalogSourceListResponseCatalogLabelListResponseCatalogModelResponseCatalogModelArtifactListResponseFilterOptionsResponseImpact Audit
clients/ui/api/openapi/mod-arch.yaml.api/openapi/catalog.yamlandapi/openapi/catalog-v1.yaml, notclients/ui/api/openapi/mod-arch.yaml.architecture-contextmaps the ODH Dashboard as the internal consumer of the Model Registry BFF surface.response.data, so runtime behavior is unchanged.Validation
References