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.go
In 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.
Hi,
I'm getting duplicate declarations of types in the generated code. I'm using this YAML file.
Code to reproduce:
In the generated code I get duplicate declarations:

Seems like the duplicate declarations are all from
#/components/parameters,#/componenters/responsesand#/components/schemasfrom the YAML file when there is name collision. For example there is bbox in#/components/parametersand#/components/schemasand they both get generated as Bbox type.