oapi-codegen
oapi-codegen copied to clipboard
How to generate a an import via import-mapping without self-import?
I have three files:
- enums.yaml
- components.yaml
- endpoints.yaml
Endpoints use both components and enums. Components use enums.
I want to generate three files in the same package. I have to use --import-mapping to resolve the references, but the generation makes use of "self import" that in Go is not allowed and useless.
How can I fix this issue?