Resolve inheritance between identified records
This commit is contained in:
@@ -22,6 +22,18 @@ type identifiedInheritanceGraph struct {
|
||||
byIdentity map[string]int
|
||||
}
|
||||
|
||||
func sequenceHasIdentifiedInheritanceReferences(sequence *document.Node) bool {
|
||||
if sequence == nil || sequence.Kind != document.Sequence {
|
||||
return false
|
||||
}
|
||||
for _, item := range sequence.Sequence {
|
||||
if directive, found := inheritanceDirective(item); found && directive.Value.Kind != document.Null {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// analyzeIdentifiedInheritanceGraph validates relationships inside one
|
||||
// identified sequence. It prepares a graph only; mapping-sibling expansion
|
||||
// remains the active inheritance behavior until the reusable scope executor is
|
||||
|
||||
Reference in New Issue
Block a user