• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-swift / 24999651953
81%

Build:
DEFAULT BRANCH: main
Ran 27 Apr 2026 02:11PM UTC
Jobs 1
Files 90
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Apr 2026 02:03PM UTC coverage: 81.408% (+0.3%) from 81.155%
24999651953

push

github

web-flow
feat(functions): support custom JSON encoder and decoder (#975)

* feat(functions): support custom JSON encoder and decoder

Previously, FunctionInvokeOptions always used a default JSONEncoder()
when encoding Encodable request bodies, with no way to customize
encoding strategies (e.g. snake_case keys, custom date formats).

This adds encoder/decoder parameters to:
- FunctionInvokeOptions body initializers
- FunctionsClient initializers
- SupabaseClientOptions.FunctionsOptions

The client-level decoder is also used as the default for the
invoke<T: Decodable> method, replacing the per-call JSONDecoder()
default.

Made-with: Cursor

* fix(functions): remove unused client-level encoder from FunctionsClient

The encoder stored on FunctionsClient was never used during request building
since body encoding happens inside FunctionInvokeOptions. Remove it and keep
only the decoder (which IS used in invoke<T: Decodable>). Per-call encoding
is still fully supported via FunctionInvokeOptions(body:encoder:).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore(functions): fix formatting in Types.swift

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Oleg Bezrukavnikov <obezrukavnikov@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

23 of 25 new or added lines in 4 files covered. (92.0%)

6 existing lines in 2 files now uncovered.

7216 of 8864 relevant lines covered (81.41%)

31.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.09
0.2% Sources/Functions/FunctionsClient.swift

Coverage Regressions

Lines Coverage ∆ File
5
37.5
11.76% Sources/Auth/Internal/Keychain.swift
1
41.67
-8.33% Sources/Auth/Storage/KeychainLocalStorage.swift
Jobs
ID Job ID Ran Files Coverage
1 24999651953.1 27 Apr 2026 02:11PM UTC 90
81.41
GitHub Action Run
Source Files on build 24999651953
  • Tree
  • List 90
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24999651953
  • b7e6a63d on github
  • Prev Build on main (#24986897224)
  • Next Build on main (#25002746422)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc