mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
Added a back tick for consistent rendering
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user