Skip to content

fix(api): accept offset timestamps - #6117

Merged
jgoux merged 4 commits into
supabase:developfrom
7ttp:fix/api-datetime-pattern-decode
Aug 8, 2026
Merged

fix(api): accept offset timestamps#6117
jgoux merged 4 commits into
supabase:developfrom
7ttp:fix/api-datetime-pattern-decode

Conversation

@7ttp

@7ttp7ttp commented Aug 7, 2026

Copy link
Copy Markdown
Member

TL;DR

fixes supabase link and supabase branches list failing against every project, which was caused by the generated response schemas inheriting the OpenAPI spec's Z-anchored date-time patterns while the Management API serializes timestamps with a numeric UTC offset, and is

now pragmatically fixed by dropping that pattern during code generation so date-time strings keep only their format annotation. Timestamps are no longer pattern checked at decode time, matching the contract that shipped before the spec added patterns...

ref:

@7ttp
7ttp requested a review from a team as a code ownerAugust 7, 2026 19:00

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:443d4d81bb

ℹ️ 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".

Comment threadpackages/api/scripts/generate.ts

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:4219c91105

ℹ️ 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".

Comment threadpackages/api/src/generated/contracts.ts
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit:4219c91105

ℹ️ 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".

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:6eb728877d

ℹ️ 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".

Comment threadpackages/api/scripts/generate.ts
@7ttp

7ttp commented Aug 7, 2026

Copy link
Copy Markdown
MemberAuthor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit:8a9312ee6a

ℹ️ 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".

@7ttp7ttp self-assigned this Aug 7, 2026
@jgoux
jgoux added this pull request to the merge queueAug 8, 2026
Merged via the queue into supabase:develop with commit 03880bbAug 8, 2026
24 checks passed
GonzaloSevilla22 added a commit to GonzaloSevilla22/v0-saa-s-empresarial-completo that referenced this pull request Aug 11, 2026
…e link (#370)
Revierte el pin a 2.111.0 introducido en #363. La regresion de v2.112.0
(supabase link fallaba con SchemaError sobre inserted_at de la 3a API
key) se arreglo upstream: supabase/cli#6115 cerro como completed el
2026-08-08 via PR supabase/cli#6117 "fix(api): accept offset timestamps",
y v2.113.0 estable salio 30 minutos despues con el fix incluido.
La verificacion E2E es el propio Build and Deploy de este merge: corre
`supabase link` con latest contra el proyecto real (3+ API keys, el
trigger exacto del bug). Si volviera a fallar, re-pinnear a 2.111.0.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for freeto 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.

supabase link fails on v2.112.0: SchemaError on api-keys inserted_at (regex requires Z suffix)

2 participants

@7ttp@jgoux