Skip to content

Commit

Permalink
moved to key node for media types
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Apr 3, 2024
1 parent 77e964c commit a5ad684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/openapi/examples_missing.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (em ExamplesMissing) RunRule(_ []*yaml.Node, context model.RuleFunctionCont
results = append(results,
buildResult(vacuumUtils.SuppliedOrDefault(context.Rule.Message, "parameter is missing `examples` or `example`"),
p.GenerateJSONPath(),
p.Value.GoLow().RootNode, p))
p.Value.GoLow().KeyNode, p))
}
}
}
Expand Down Expand Up @@ -112,7 +112,7 @@ func (em ExamplesMissing) RunRule(_ []*yaml.Node, context model.RuleFunctionCont
results = append(results,
buildResult(vacuumUtils.SuppliedOrDefault(context.Rule.Message, "media type is missing `examples` or `example`"),
mt.GenerateJSONPath(),
mt.Value.GoLow().RootNode, mt))
mt.Value.GoLow().KeyNode, mt))
}
}
}
Expand Down

0 comments on commit a5ad684

Please sign in to comment.