You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can this issue be reproduced with the latest version?
Yes (with my spec file)
What did you do?
I attempted to generate code from the spec file.
//go:generate go run github.com/ogen-go/ogen/cmd/ogen --target ./client -package client --clean openapi.json
What did you expect to see?
Successful code generation.
Code generation is successful in version github.com/ogen-go/ogen v1.10.1
degradation occurred between v1.10.1 and v1.11.0
What did you see instead?
generate:
main.run
/Users/tomerheber/go/pkg/mod/github.com/ogen-go/[email protected]/cmd/ogen/main.go:378
- build IR:
main.generate
/Users/tomerheber/go/pkg/mod/github.com/ogen-go/[email protected]/cmd/ogen/main.go:71
- make ir:
github.com/ogen-go/ogen/gen.NewGenerator
/Users/tomerheber/go/pkg/mod/github.com/ogen-go/[email protected]/gen/generator.go:110
- operations:
github.com/ogen-go/ogen/gen.(*Generator).makeIR
/Users/tomerheber/go/pkg/mod/github.com/ogen-go/[email protected]/gen/generator.go:128
- anonymous type name conflict: "OptSecretConfig":
github.com/ogen-go/ogen/gen.(*tstorage).merge
/Users/tomerheber/go/pkg/mod/github.com/ogen-go/[email protected]/gen/tstorage.go:180
The text was updated successfully, but these errors were encountered:
TomerHeber
changed the title
Conflict: After Upgrading to v1.12.0 or v1.11.0 generation fails with a conflict.
Generation Error after Upgrading to v1.12.0 or v1.11.0 - generation fails with a conflict.
Apr 19, 2025
I'm not sure if the root cause is the same, but I'm getting a similar error for the example below (make ir: operations: anonymous type name conflict: "OptObj"). Removing "nullable": true, for Obj fixes the error.
What version of ogen are you using?
1.12.0 and 1.11.0
Can this issue be reproduced with the latest version?
Yes (with my spec file)
What did you do?
I attempted to generate code from the spec file.
What did you expect to see?
Successful code generation.
Code generation is successful in version github.com/ogen-go/ogen v1.10.1
degradation occurred between v1.10.1 and v1.11.0
What did you see instead?
The text was updated successfully, but these errors were encountered: