Working through building out schema models.

Perhaps the most complex model in the stack, almost there! a small amount of refactoring also to help things stay clean.
This commit is contained in:
Dave Shanley
2022-08-05 12:47:50 -04:00
parent e6518af576
commit bdb9aa7c41
15 changed files with 515 additions and 255 deletions

View File

@@ -21,3 +21,7 @@ type ObjectReference struct {
ValueNode *yaml.Node
KeyNode *yaml.Node
}
func (n NodeReference[T]) IsEmpty() bool {
return n.KeyNode == nil && n.ValueNode == nil
}