mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
fix: tests
This commit is contained in:
@@ -28,6 +28,10 @@ func (r Reference) IsReference() bool {
|
||||
}
|
||||
|
||||
func (r Reference) GetReferenceNode() *yaml.Node {
|
||||
if r.IsReference() && r.refNode == nil {
|
||||
return utils.CreateRefNode(r.reference)
|
||||
}
|
||||
|
||||
return r.refNode
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user