Skip to content

docs(functions): spec how invoke builds the URL from the function name - #374

Draft
grdsdev wants to merge 3 commits into
mainfrom
guilherme/functions-invoke-query-in-name
Draft

grdsdev wants to merge 3 commits into
mainfrom
guilherme/functions-invoke-query-in-name

Conversation

@grdsdev

@grdsdev grdsdev commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

What

Adds packages/capability-matrix/specs/functions/invocation/invoke.md for functions.invocation.invoke. It covers only how the request URL is built from the function name:

  • The part of the name before the first ? is the path.
  • The part after the first ? is sent as the URL query, never as %3F in the path.
  • A #fragment is dropped.
  • Query options and the forceFunctionRegion item replace same-named items from the name.

Why

supabase-js and supabase-flutter already behave this way. The Swift SDK percent-encoded ? into the path, so invoke("search?q=x") requested /functions/v1/search%3Fq=x and got a 404 ("Function not found" on the local stack). No spec described the expected behavior.

Linear: SDK-2925

Checks

  • bun run validate in packages/capability-matrix: OK
  • bun run format:check: OK

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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