Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dorzepowski committed Feb 13, 2025
1 parent 0230ff4 commit 423dfcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/merge_yamls.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func main() {
mergePaths(templateDoc, loadOpenAPIDoc(loader, path))
}

templateDoc.InternalizeRefs(context.Background(), MergedRefNameResolver)
templateDoc.InternalizeRefs(context.Background(), mergedRefNameResolver)
saveMergedSpec(templateDoc, outputPath)
fmt.Printf("Merged OpenAPI spec saved to %s\n", outputPath)
}
Expand Down Expand Up @@ -95,7 +95,7 @@ func saveMergedSpec(doc *openapi3.T, outputPath string) {
}
}

func MergedRefNameResolver(doc *openapi3.T, ref openapi3.ComponentRef) string {
func mergedRefNameResolver(doc *openapi3.T, ref openapi3.ComponentRef) string {
name := openapi3.DefaultRefNameResolver(doc, ref)
name = strings.Replace(name, "api_components_", "", 1)
return name
Expand Down

0 comments on commit 423dfcc

Please sign in to comment.