intercom / Intercom-OpenAPI

An OpenAPI description for Intercom's REST API
MIT License
12 stars 10 forks source link

Does not compile for Golang #83

Open pkpfr opened 1 year ago

pkpfr commented 1 year ago

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 commented 9 months 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
Eclairemoy commented 2 months ago

Hi @pkpfr and @billinghamj - we are doing an audit of the spec now and will address these issues, thank you for flagging