mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
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!
This commit is contained in:
@@ -67,3 +67,8 @@ func (sp *SchemaProxy) Schema() *Schema {
|
|||||||
func (sp *SchemaProxy) GetBuildError() error {
|
func (sp *SchemaProxy) GetBuildError() error {
|
||||||
return sp.buildError
|
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
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user