mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 12:37:48 +00:00
working through rolodex design and using it externally via vacuum
this is some complex and messy work. Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -53,10 +53,23 @@ func NewResolver(index *SpecIndex) *Resolver {
|
||||
if index == nil {
|
||||
return nil
|
||||
}
|
||||
return &Resolver{
|
||||
r := &Resolver{
|
||||
|
||||
specIndex: index,
|
||||
resolvedRoot: index.GetRootNode(),
|
||||
}
|
||||
index.resolver = r
|
||||
return r
|
||||
}
|
||||
|
||||
// GetIgnoredCircularPolyReferences returns all ignored circular references that are polymorphic
|
||||
func (resolver *Resolver) GetIgnoredCircularPolyReferences() []*CircularReferenceResult {
|
||||
return resolver.ignoredPolyReferences
|
||||
}
|
||||
|
||||
// GetIgnoredCircularArrayReferences returns all ignored circular references that are arrays
|
||||
func (resolver *Resolver) GetIgnoredCircularArrayReferences() []*CircularReferenceResult {
|
||||
return resolver.ignoredArrayReferences
|
||||
}
|
||||
|
||||
// GetResolvingErrors returns all errors found during resolving
|
||||
|
||||
Reference in New Issue
Block a user