You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func filterPathsByExtensionInternal(paths *openapi3.Paths, r *regexp.Regexp) {
for path, pathItem := range paths.Map() {
for extension := range pathItem.Extensions {
if r.MatchString(extension) {
delete(paths.Map(), path)
break
}
}
}
}
After the PR, Map() returns a copy rather than the original paths map which makes it impossible to delete paths.
I suggest to add a Delete function in maps.sh similar to the Set function.
I'm happy to create the PR if this makes sense.
The text was updated successfully, but these errors were encountered:
Hi,
Before #882 I could delete a path like this:
After the PR,
Map()
returns a copy rather than the original paths map which makes it impossible to delete paths.I suggest to add a
Delete
function in maps.sh similar to theSet
function.I'm happy to create the PR if this makes sense.
The text was updated successfully, but these errors were encountered: