Skip to content

Add ConfigResolver with shared singleton pattern#641

Open
ubaskota wants to merge 1 commit intosmithy-lang:config_resolution_mainfrom
ubaskota:config_resolver
Open

Add ConfigResolver with shared singleton pattern#641
ubaskota wants to merge 1 commit intosmithy-lang:config_resolution_mainfrom
ubaskota:config_resolver

Conversation

@ubaskota
Copy link

Issue #, if available:

Description of changes:

Implements ConfigResolver to resolve config values from multiple sources in precedence order. Adds get_shared_resolver() using @lru_cache to share a single resolver instance across all config objects, avoiding redundant reads from the sources.

Tests
Added unit tests to validate the expected behavior. Verified that the tests pass.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ubaskota ubaskota requested a review from a team as a code owner February 20, 2026 00:08
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

Comments