mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +00:00
Building out model some more.
everything is holding up well.
This commit is contained in:
@@ -448,7 +448,7 @@ func IsHttpVerb(verb string) bool {
|
||||
|
||||
func ConvertComponentIdIntoFriendlyPathSearch(id string) (string, string) {
|
||||
segs := strings.Split(id, "/")
|
||||
name := segs[len(segs)-1]
|
||||
name := strings.ReplaceAll(segs[len(segs)-1], "~1", "/")
|
||||
|
||||
replaced := strings.ReplaceAll(fmt.Sprintf("%s['%s']",
|
||||
strings.Join(segs[:len(segs)-1], "."), name), "#", "$")
|
||||
|
||||
Reference in New Issue
Block a user