Skip to content

Bug: Header name is always blank #36

Description

@dta5003

When attempting to define a header parameter like

    headerAccountId:
      name: accountId
      in: header
      required: true
      schema:
        type: string

the name of the header should be "accountId" but is generated as "".

Looks like the bug is here: https://github.com/darkpatternsdigital/openapi-generators/blob/04ee5fcb9b1c758c263d7aa8c20526ed1b07da6a/generators/csharp/OpenApiCodegen.CSharp.Base/Client/Templates/client.handlebars#L67C43-L67C51

{{BaseName}} should instead be {{RawName}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions