fix(api): resync sso provider schemas - #6058
Merged
Merged
Conversation
Coly010
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
supabase sso listdies withSchemaError(Missing key at ["items"][0]["domains"][0]["id"])The platform dropped
idfromsamlanddomains[]on the sso provider responses on Jul 21. Go absorbed it same day in #5897we didn't, since our
openapi.jsonstill marksdomains[].idrequired and we decode strictly.showandupdate's preflight hit the same field,removehitssaml.idone earlierthey surface one at a time because decoding stops at the first missing key, which is why it reads like a regression of #5475.
The snapshot never healed because that same spec change tripped the two
saml/requiredtestops inopenapi-overrides.json, the first sync run after the change, and api-package-sync has been red every run sinceso this unblocks that too.
The two overrides go with it: upstream adopted both, there's nothing left to relax, and keeping them only re-arms the same hard stop next time.
Resynced the five schemas from the live spec and regenerated
byte-identical to a fresh
pnpm generate, so the next sync won't fight it.Nothing read the dropped fields, and
sso.go-payload.tsalready mirrored Go's struct without them, so-o yaml|tomlis unchanged and-o jsonnow drops them the way Go does, even if a project still echoes them.Two things the resync pulled in that are worth naming rather than leaving for a reviewer to spot....
the
attribute_mapping…defaultunion flippedoneOf→anyOfupstream, so the generatedSchema.Unionloses{ mode: "oneOf" }— inert here, the four branches are disjoint so no value can match two.And the fixture churn: the sso suites were feeding themselves
saml.id/domains[].idthat the API doesn't send,so they'd have stayed green however stale the schema got. They use the real payload shape now....
refs