Open pkpfr opened 1 year ago
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
Hi @pkpfr and @billinghamj - we are doing an audit of the spec now and will address these issues, thank you for flagging
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 allowapi-codegen
to be able to generate working Go code.