Skip to content

Commit

Permalink
RHINENG-9600: update apidoc code to new kin-openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed May 30, 2024
1 parent 12b7b54 commit 33183e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func filterOpenAPI(config EndpointsConfig, inputOpenapiPath, outputOpenapiPath s
panicErr(err)

filteredPaths := openapi3.Paths{}
for path := range sw.Paths {
for path := range sw.Paths.Map() {
if !config.EnableBaselines && strings.Contains(path, "/baselines") {
removedPaths++
continue
Expand All @@ -89,10 +89,10 @@ func filterOpenAPI(config EndpointsConfig, inputOpenapiPath, outputOpenapiPath s
removedPaths++
continue
}
filteredPaths[path] = sw.Paths[path]
filteredPaths.Set(path, sw.Paths.Value(path))
}

sw.Paths = filteredPaths
sw.Paths = &filteredPaths
outputBytes, err := sw.MarshalJSON()
panicErr(err)

Expand Down

0 comments on commit 33183e7

Please sign in to comment.