mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
A few small bugfixes discovered from online users of openapi-changes
someone caused a panic, exposed an untested bug. Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -154,7 +154,7 @@ func (p *Paths) Build(ctx context.Context, _, root *yaml.Node, idx *index.SpecIn
|
||||
err := path.Build(ctx, cNode, pNode, idx)
|
||||
|
||||
if err != nil {
|
||||
if idx.GetLogger() != nil {
|
||||
if idx != nil && idx.GetLogger() != nil {
|
||||
idx.GetLogger().Error(fmt.Sprintf("error building path item '%s'", err.Error()))
|
||||
}
|
||||
//return buildResult{}, err
|
||||
|
||||
Reference in New Issue
Block a user