chore: sync API types from infrastructure#5897
chore: sync API types from infrastructure#5897supabase-cli-releaser[bot] wants to merge 1 commit into
Conversation
|
Found 139 test failures on Blacksmith runners: Failures
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9f1a1e9aa9
ℹ️ 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".
| Name *string `json:"name,omitempty"` | ||
| Names *[]string `json:"names,omitempty"` | ||
| Array *bool `json:"array,omitempty"` | ||
| Default interface{} `json:"default,omitempty"` |
There was a problem hiding this comment.
Keep SSO attribute mapping structs type-compatible
Changing this generated Default field from *interface{} to interface{} breaks the existing SSO create/update call sites, which still assign anonymous AttributeMapping structs whose Default field is *any in internal/sso/create/create.go and internal/sso/update/update.go. Anonymous struct types must match exactly in Go, so building the CLI now fails for those commands until the call sites (and tests) are updated to the new field shape or the generated type is restored.
Useful? React with 👍 / 👎.
| Fga_permissionsScopes fgaPermissionsContextKey = "fga_permissions.Scopes" | ||
| Oauth2Scopes oauth2ContextKey = "oauth2.Scopes" |
There was a problem hiding this comment.
Define the new OAuth context key types
These constants are now annotated with fgaPermissionsContextKey and oauth2ContextKey, but this package only defines bearerContextKey later in the generated file and there are no definitions for the other two key types. Any build that includes pkg/api now fails with undefined: fgaPermissionsContextKey / undefined: oauth2ContextKey; either generate those types as well or leave these constants untyped as before.
Useful? React with 👍 / 👎.
9f1a1e9 to
c700a1b
Compare
This PR was automatically created to sync API types from the infrastructure repository.
Changes were detected in the generated API code after syncing with the latest spec from infrastructure.