oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

Bug Report: demonstration of overlays and allOf not playing together nicely

Open nelzblooket opened this issue 5 months ago • 1 comments

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.

nelzblooket avatar Sep 12 '25 15:09 nelzblooket

Kusari Inspector

Kusari Analysis Results:

Proceed with these changes
✅ 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!

kusari-inspector[bot] avatar Sep 12 '25 15:09 kusari-inspector[bot]