Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/oapi-codegen/oapi-codegen
/ pruneUnusedComponents
Function
pruneUnusedComponents
pkg/codegen/prune.go:473–481 ·
view source on GitHub ↗
(swagger *openapi3.T)
Source
from the content-addressed store, hash-verified
471
}
472
473
func
pruneUnusedComponents(swagger *openapi3.T) {
474
for
{
475
refs := findComponentRefs(swagger)
476
countRemoved := removeOrphanedComponents(swagger, refs)
477
if
countRemoved < 1 {
478
break
479
}
480
}
481
}
Callers
4
TestFilterOnlyCat
Function · 0.85
TestFilterOnlyDog
Function · 0.85
TestPruningUnusedComponents
Function · 0.85
Generate
Function · 0.85
Calls
2
findComponentRefs
Function · 0.85
removeOrphanedComponents
Function · 0.85
Tested by
3
TestFilterOnlyCat
Function · 0.68
TestFilterOnlyDog
Function · 0.68
TestPruningUnusedComponents
Function · 0.68