mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
@@ -301,8 +301,8 @@ func (index *SpecIndex) SetAbsolutePath(absolutePath string) {
|
|||||||
index.specAbsolutePath = absolutePath
|
index.specAbsolutePath = absolutePath
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAbsolutePath returns the absolute path to the spec file for the index. Will be absolute, either as a http link or a file.
|
// GetSpecAbsolutePath returns the absolute path to the spec file for the index. Will be absolute, either as a http link or a file.
|
||||||
func (index *SpecIndex) GetAbsolutePath() string {
|
func (index *SpecIndex) GetSpecAbsolutePath() string {
|
||||||
return index.specAbsolutePath
|
return index.specAbsolutePath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,9 @@ func TestRolodex_FindNodeOrigin(t *testing.T) {
|
|||||||
origin = rolo.FindNodeOrigin(&m)
|
origin = rolo.FindNodeOrigin(&m)
|
||||||
assert.Nil(t, origin)
|
assert.Nil(t, origin)
|
||||||
|
|
||||||
|
// extract the doc root
|
||||||
|
origin = rolo.FindNodeOrigin(node)
|
||||||
|
assert.Nil(t, origin)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRolodex_FindNodeOrigin_ModifyLookup(t *testing.T) {
|
func TestRolodex_FindNodeOrigin_ModifyLookup(t *testing.T) {
|
||||||
|
|||||||
@@ -137,10 +137,6 @@ func (index *SpecIndex) BuildIndex() {
|
|||||||
index.built = true
|
index.built = true
|
||||||
}
|
}
|
||||||
|
|
||||||
func (index *SpecIndex) GetSpecAbsolutePath() string {
|
|
||||||
return index.specAbsolutePath
|
|
||||||
}
|
|
||||||
|
|
||||||
func (index *SpecIndex) GetLogger() *slog.Logger {
|
func (index *SpecIndex) GetLogger() *slog.Logger {
|
||||||
return index.logger
|
return index.logger
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user