Repository navigation
Add atomic overlay read_into / load_into deserialization for layered configs - #81
Closed
clockblocker wants to merge 5 commits into
Closed
clockblocker wants to merge 5 commits into
clockblocker wants to merge 5 commits into
Conversation
This was referenced Nov 27, 2026
Owner
Author
|
Review Scope Recommendation (Wayfinder Clerk sync):
|
Owner
Author
|
Follow-up Review Design Decisions (
|
…eric fast-path, tests) and add rfl::toml::read_into
Owner
Author
|
Active Harness Validation Note (clockblocker/slang-server#1,
|
…erlay and try/catch guards
…nd remaining noexcept throw boundaries
Owner
Author
|
Parked into #116 (Easy & Landable) — branch preserved on fork. Real-world layered config adoption in slang-server#1 needed array-append, map-merge, and explicit-vs-null presence tracking rather than blind container replacement, so shrinking the active Phase 2 upstream queue from 18 to 17 PRs. |
3 of 16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds atomic overlay deserialization (
rfl::json::read_into,rfl::json::load_into,rfl::yaml::read_into,rfl::yaml::load_into,rfl::from_generic_into,rfl::generic::read_into) for layered configuration files (workspace -> user -> local) without double-parsing throughrfl::Generic.Semantics & Design
T _baseby value and returnsrfl::Result<T>so overlay calls are atomic on error (caller's originalbaseis untouched on syntax/type/validation/NoExtraFieldsfailure), compose naturally via.and_then(...), and support move-only structs (std::unique_ptr)._base; present fields overwrite_base, recursing into nested structs (and existingstd::optional<NestedStruct>/ smart-pointer targets) while clearingstd::optionaltostd::nullopton explicitnull.rfl::Validator,rfl::NoExtraFields, naming processors (SnakeCaseToCamelCase,Rename),rfl::Skip, andrfl::ExtraFieldssemantics.tests/{json,yaml,generic}/test_read_into.cpp) and documentation indocs/content/{generic,supported_formats/json,supported_formats/yaml}.md.Verification
ctestsuite (json,yaml,generic,cli,env,json_c_arrays_and_inheritance) under-Wall -Werror: 100% PASSED.