Resolve inheritance between identified records
This commit is contained in:
@@ -18,7 +18,9 @@ type Definition[T any] struct {
|
||||
// SequenceCompositions registers mapping paths whose sequence contributions
|
||||
// strictly append distinct records by the selected literal identity field.
|
||||
// Invalid or conflicting registrations fail option validation. Repeated input
|
||||
// identities fail strict composition after source and helper processing.
|
||||
// identities fail strict composition after source and helper processing. The
|
||||
// field also supplies identity for parent lookup when surviving records at
|
||||
// that path use record-inheritance directives.
|
||||
// Registration paths are copied when a load begins; definitions are read-only
|
||||
// after being shared.
|
||||
SequenceCompositions []SequenceComposition
|
||||
@@ -46,6 +48,7 @@ type SequenceComposition struct {
|
||||
Path Path
|
||||
// IdentityField is one literal mapping key and may be empty. Records must
|
||||
// contain a string at this key; malformed records fail strict composition.
|
||||
// The field also identifies parents for record inheritance at this path.
|
||||
IdentityField string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user