Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

MRE for type collisions in code generated by oapi-codegen

Minimal reproducible example for duplicate types described in issue #899

Using [email protected].

Running ./generate.sh should reproduce the committed problematic code.

The issue is that TestResponse in client.go#L17 generated from the schema named TestResponse in openapi.yml#L19 just happens to have the same name as what oapi-codegen generates for the responses of the path /test (openapi.yml#L10) in client.go#L18