Skip to content

Add default JSONDecoder to Configuration protocol - #99

Merged
pietbrauer merged 2 commits into
mainfrom
feature/configuration-decoder
May 14, 2026
Merged

pietbrauer merged 2 commits into
mainfrom
feature/configuration-decoder

Conversation

@pietbrauer

Copy link
Copy Markdown
Member

Callers (e.g. Octokit.swift) were recreating an identical JSONDecoder on every request. Configuration now exposes a decoder property with a default implementation returning JSONDecoder(), and load()/post() fall back to configuration.decoder when no explicit decoder is passed.

@pietbrauer
pietbrauer force-pushed the feature/configuration-decoder branch from df1d3e7 to ffec93e Compare May 14, 2026 12:25
Callers (e.g. Octokit.swift) were recreating an identical JSONDecoder
on every request. Configuration now exposes a decoder property with a
default implementation returning JSONDecoder(), and load()/post() fall
back to configuration.decoder when no explicit decoder is passed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pietbrauer
pietbrauer force-pushed the feature/configuration-decoder branch from ffec93e to 983a74f Compare May 14, 2026 13:10
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pietbrauer
pietbrauer merged commit 9311d38 into main May 14, 2026
7 checks passed
@pietbrauer
pietbrauer deleted the feature/configuration-decoder branch May 14, 2026 13:21
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