Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not compile for Golang #83

Open
pkpfr opened this issue Jun 22, 2023 · 1 comment
Open

Does not compile for Golang #83

pkpfr opened this issue Jun 22, 2023 · 1 comment

Comments

@pkpfr
Copy link

pkpfr commented Jun 22, 2023

The 2.9 version (perhaps others) does not compile for Go.

There are duplicate type declarations for TicketType and TicketTypes.

One of the duplicates needs an x-go-name attribute to allow api-codegen to be able to generate working Go code.

@billinghamj
Copy link

Similar error when using oapi-codegen:

error generating code: error generating type definitions: error generating code for type definitions: duplicate typename 'TicketType' detected, can't auto-rename, please use x-go-name to specify your own name for one of them
exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants