Skip to content

chore(api): update openapi client and fetch spec on demand - #1035

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi/update-openapi-client-25e2f224
Oct 30, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi/update-openapi-client-25e2f224

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

chore(api): update openapi client and fetch spec on demand

🤖 This text was AI-generated.

The client uses an older spec and lacks dataset restore operations. Update
the pin to d9102b7592e8
and regenerate the client, public types, and reference docs.

The new OpenAPI 3.1 spec expresses nullable values with type arrays that
the generator previously rejected:

{"type": ["integer", "null"]}

Support these schemas and normalize nullable model inputs so map value
types are preserved. Remove the obsolete CORS tag configuration and expose
the new dataset operations:

client.openapi.datasets.post_dataset_id_restore_preview(
    dataset_id, body={"version": version}
)
client.openapi.datasets.post_dataset_id_restore(
    dataset_id, body={"version": version}
)

Replace the tracked spec snapshot with an ignored cache. Generation,
checks, and spec updates fetch the pinned commit when the cache is missing
and verify its SHA-256 before use. A first run requires GitHub access or
a local upstream checkout; package builds still use generated Python files.

> 🤖 **This text was AI-generated.**

The client uses an older spec and lacks dataset restore operations. Update
the pin to [d9102b7592e8](braintrustdata/braintrust-openapi@d9102b7)
and regenerate the client, public types, and reference docs.

The new OpenAPI 3.1 spec expresses nullable values with type arrays that
the generator previously rejected:

```json
{"type": ["integer", "null"]}
```

Support these schemas and normalize nullable model inputs so map value
types are preserved. Remove the obsolete CORS tag configuration and expose
the new dataset operations:

```python
client.openapi.datasets.post_dataset_id_restore_preview(
    dataset_id, body={"version": version}
)
client.openapi.datasets.post_dataset_id_restore(
    dataset_id, body={"version": version}
)
```

Replace the tracked spec snapshot with an ignored cache. Generation,
checks, and spec updates fetch the pinned commit when the cache is missing
and verify its SHA-256 before use. A first run requires GitHub access or
a local upstream checkout; package builds still use generated Python files.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T20:04:58.081149Z d22f310 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 3f14f10 into main Oct 30, 2026
98 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi/update-openapi-client-25e2f224 branch October 30, 2026 20:38
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