Preserve secret tags in dynamic configuration values

This commit is contained in:
2026-09-06 19:03:00 -05:00
parent f42ecc70c3
commit e0f9541f5f
7 changed files with 325 additions and 8 deletions

View File

@@ -32,11 +32,14 @@ type Entry struct {
// Node is ConfigKit's owned configuration representation. Number Text retains its
// exact validated decimal spelling; Boolean Text is "true" or "false".
type Node struct {
Kind Kind
Location Location
Text string
Mapping []Entry
Sequence []*Node
// Sensitive preserves field classification from concrete typed projections.
// It is metadata, not part of the configuration value or emitted YAML.
Sensitive bool
Kind Kind
Location Location
Text string
Mapping []Entry
Sequence []*Node
}
// Clone returns a detached copy of a node tree.