Skip to content

Resource-local config with Resource::withConfig() - #21

Merged
andrepimpao merged 4 commits into
3.xfrom
PAS-15-resource-local-configuration
Aug 1, 2026
Merged

Resource-local config with Resource::withConfig()#21
andrepimpao merged 4 commits into
3.xfrom
PAS-15-resource-local-configuration

Conversation

@andrepimpao

Copy link
Copy Markdown
Contributor

Summary

  • Add immutable resource-local configuration overrides through Resource::withConfig().
  • Introduce scoped runtimes that lazily combine the latest API configuration with resource overrides.
  • Propagate effective configuration through hooks, errors, responses, entities, collections, envelopes, and cached responses.
  • Document typed SDK helpers, generic overrides, precedence, resource reuse, and request mapping for version 3.1.0.

Behavior

  • Resource overrides never mutate API-wide configuration or the original resource.
  • Repeated calls preserve unrelated values, with later values winning for duplicate keys.
  • Non-overridden values continue following later API configuration changes.
  • withConfig() composes with withCache() in either order.
  • Configuration values are not automatically converted into query parameters or headers.

@andrepimpao andrepimpao changed the title Resource-local config Resource-local config with Resource::withConfig() Aug 1, 2026
@andrepimpao
andrepimpao merged commit 3f1a6c1 into 3.x Aug 1, 2026
5 checks passed
@andrepimpao
andrepimpao deleted the PAS-15-resource-local-configuration branch August 1, 2026 12:36
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