From 4f819c46e6e25c5ff429e5eb801d9dec3e592d3f Mon Sep 17 00:00:00 2001 From: fredbi Date: Thu, 16 Jul 2026 13:08:49 +0200 Subject: [PATCH 1/4] Apply suggested fix to mixin.go from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- mixin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixin.go b/mixin.go index ab15644..edbf957 100644 --- a/mixin.go +++ b/mixin.go @@ -358,7 +358,7 @@ func mergeSwaggerProps(primary *spec.Swagger, m *spec.Swagger) []string { if primary.ExternalDocs == nil { primary.ExternalDocs = m.ExternalDocs - } else if m != nil { + } else if m.ExternalDocs != nil { skippedDocs = mergeExternalDocs(primary.ExternalDocs, m.ExternalDocs) skipped = append(skipped, skippedDocs...) } From 17f2ca2da3a74c1f1935abb5377096764e20f82a Mon Sep 17 00:00:00 2001 From: fredbi Date: Thu, 16 Jul 2026 13:08:49 +0200 Subject: [PATCH 2/4] Apply suggested fix to mixin.go from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- mixin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixin.go b/mixin.go index edbf957..65e43c0 100644 --- a/mixin.go +++ b/mixin.go @@ -215,7 +215,7 @@ func mergePaths(primary *spec.Swagger, m *spec.Swagger, opIDs map[string]bool, m // collision we append "Mixin0" to the // operatoinId we are adding, where 0 is mixin // index. We assume that operationIds with - // all the proivded specs are already unique. + // all the provided specs are already unique. piops := pathItemOps(v) for _, piop := range piops { if opIDs[piop.ID] { From be7fcb77b43af5a776fd0b7bfbc9e8d25048c4ae Mon Sep 17 00:00:00 2001 From: fredbi Date: Thu, 16 Jul 2026 13:08:50 +0200 Subject: [PATCH 3/4] Apply suggested fix to mixin.go from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- mixin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixin.go b/mixin.go index 65e43c0..5b294d9 100644 --- a/mixin.go +++ b/mixin.go @@ -213,7 +213,7 @@ func mergePaths(primary *spec.Swagger, m *spec.Swagger, opIDs map[string]bool, m // Swagger requires that operationIds be // unique within a spec. If we find a // collision we append "Mixin0" to the - // operatoinId we are adding, where 0 is mixin + // operationId we are adding, where 0 is mixin // index. We assume that operationIds with // all the provided specs are already unique. piops := pathItemOps(v) From a23cc034c555388ea8860365addeefa6a6ab4aea Mon Sep 17 00:00:00 2001 From: fredbi Date: Thu, 16 Jul 2026 13:08:50 +0200 Subject: [PATCH 4/4] Apply suggested fix to mixin.go from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- mixin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/mixin.go b/mixin.go index 5b294d9..635b1b0 100644 --- a/mixin.go +++ b/mixin.go @@ -130,6 +130,7 @@ func pathItemOps(p spec.PathItem) []*spec.Operation { rv = appendOp(rv, p.Post) rv = appendOp(rv, p.Delete) rv = appendOp(rv, p.Head) + rv = appendOp(rv, p.Options) rv = appendOp(rv, p.Patch) return rv