oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

How to generate a an import via import-mapping without self-import?

Open alimoli opened this issue 1 year ago • 0 comments

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?

alimoli avatar Mar 07 '24 12:03 alimoli