From 4a2d80b9c5a75f731456f16bc056c5bf37e3ebb4 Mon Sep 17 00:00:00 2001 From: Dave Shanley Date: Wed, 26 Oct 2022 06:53:09 -0400 Subject: [PATCH] Added GoLow() to high level schema proxy. Travis Newhouse pointed out that there is no way to get to the low level proxy, from the high level one! --- datamodel/high/base/schema_proxy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/datamodel/high/base/schema_proxy.go b/datamodel/high/base/schema_proxy.go index 8a20403..aaba2da 100644 --- a/datamodel/high/base/schema_proxy.go +++ b/datamodel/high/base/schema_proxy.go @@ -67,3 +67,8 @@ func (sp *SchemaProxy) Schema() *Schema { func (sp *SchemaProxy) GetBuildError() error { return sp.buildError } + +// GoLow returns the low-level SchemaProxy that was used to create the high-level one. +func (sp *SchemaProxy) GoLow() *low.NodeReference[*base.SchemaProxy] { + return sp.schema +}