Added a back tick for consistent rendering

This commit is contained in:
quobix
2024-07-30 11:18:11 -04:00
parent 0a98b84ca7
commit 31ed123abd

View File

@@ -12,8 +12,8 @@ import (
"strings" "strings"
"github.com/pb33f/libopenapi/utils" "github.com/pb33f/libopenapi/utils"
"slices"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
"slices"
) )
// ExtractRefs will return a deduplicated slice of references for every unique ref found in the document. // ExtractRefs will return a deduplicated slice of references for every unique ref found in the document.
@@ -662,7 +662,7 @@ func (index *SpecIndex) ExtractComponentsFromRefs(refs []*Reference) []*Referenc
_, path := utils.ConvertComponentIdIntoFriendlyPathSearch(ref.Definition) _, path := utils.ConvertComponentIdIntoFriendlyPathSearch(ref.Definition)
indexError := &IndexingError{ indexError := &IndexingError{
Err: fmt.Errorf("component '%s' does not exist in the specification", ref.Definition), Err: fmt.Errorf("component `%s` does not exist in the specification", ref.Definition),
Node: ref.Node, Node: ref.Node,
Path: path, Path: path,
KeyNode: ref.KeyNode, KeyNode: ref.KeyNode,