Bug Report: demonstration of overlays and allOf not playing together nicely
Following the instructions:
Version of oapi-codegen - from main pulled today:
$ go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -version
github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
(devel)
Go version:
$ go version
go version go1.24.0 darwin/arm64
Problem statement:
When doing an overlay of a type that has an allOf with a reference to another overlay, the subset overlay is being created as the alias in the generated file.
Kusari Analysis Results:
✅ No Flagged Issues Detected
All values appear to be within acceptable risk parameters.
No pinned version dependency changes, code issues or exposed secrets detected!
[!NOTE] View full detailed analysis result for more information on the output and the checks that were run.
@kusari-inspector rerun - Trigger a re-analysis of this PR @kusari-inspector feedback [your message] - Send feedback to our AI and team See Kusari's documentation for setup and configuration. Commit: f64f92b2a50f8b49f27781a352b99baa31814169, performed at: 2025-09-12T15:48:22Z
Found this helpful? Give it a 👍 or 👎 reaction!