Skip to content

CreateBlueprintResponse redeclared in this block #1713

@lzap

Description

@lzap

Hello,

I am hitting this error

internal/clients/http/image_builder/client.gen.go:3631:6: CreateBlueprintResponse redeclared in this block

when I try to compile a client generated from this YAML:

https://gist.github.com/lzap/55d2144c19d85b1072b6d32cfbe9a6c9

$ bin/oapi-codegen --version
github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen
v2.0.0

Can someone explain to me why am I hitting this? Apparently, renaming the component does help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions