(feat): Schema now has pointer back to SchemaProxy #29

The 'owning' `SchemaProxy` is now trackable back from a `Schema` part of the conversations happening on #29
This commit is contained in:
Dave Shanley
2022-12-05 12:18:10 -05:00
parent 9ccd3bc8b7
commit cbfb051a92
6 changed files with 16 additions and 1 deletions

View File

@@ -105,6 +105,9 @@ type Schema struct {
Example low.NodeReference[any]
Deprecated low.NodeReference[bool]
Extensions map[low.KeyReference[string]]low.ValueReference[any]
// Parent Proxy refers back to the low level SchemaProxy that is proxying this schema.
ParentProxy *SchemaProxy
}
// Hash will calculate a SHA256 hash from the values of the schema, This allows equality checking against