-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Hi,
I'm getting duplicate declarations of types in the generated code. I'm using this YAML file.
Code to reproduce:
curl "https://raw.githubusercontent.com/radiantearth/stac-api-spec/47eaaee5b22bc9fde796972c0206f964407fed09/STAC.yaml" >STAC.yaml
oapi-codegen -generate types STAC.yaml > types.gen.goIn the generated code I get duplicate declarations:

Seems like the duplicate declarations are all from #/components/parameters, #/componenters/responses and #/components/schemas from the YAML file when there is name collision. For example there is bbox in #/components/parameters and #/components/schemas and they both get generated as Bbox type.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels