chore: sync infra OpenAPI specs#276
chore: sync infra OpenAPI specs#276e2b-generated-code-auto-fixer[bot] wants to merge 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4d49e9e846
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| id: | ||
| type: string | ||
| aliases: | ||
| type: array | ||
| items: |
There was a problem hiding this comment.
Align
/templates/defaults with the existing template DTO
If /templates/defaults is meant to back the current templates page, this schema is not compatible with the payload the dashboard already consumes. src/server/api/routers/templates.ts returns default templates in the same shape as Template (templateID, buildID, names, updatedAt, createdBy, etc.), and src/features/dashboard/templates/list/table.tsx/table-config.tsx merge those objects directly with regular templates and read those fields. The contract here renames core fields (id, buildId, ramMb) and changes aliases to objects while omitting names, updatedAt, and createdBy, so a generated client for this endpoint cannot drive the existing default-template flow without an extra translation layer.
Useful? React with 👍 / 👎.
This PR syncs OpenAPI specs from e2b-dev/infra:
spec/openapi.infra.yamlspec/openapi.dashboard-api.yamlIt also regenerates dependent TypeScript API types and applies formatting/lint autofixes.
This PR was automatically created by the sync-infra-specs workflow.