Skip to content

Add suport for x-client-name #6576

Closed
Closed
@madcamp

Description

@madcamp

Is your feature request related to a problem? Please describe the problem.

It does not rename the parameter when x-client-name is added to the specs

Client library/SDK language

Csharp

Describe the solution you'd like

when "x-client-name" is added to the OpenApi Spec, it uses that to generate the name of the variable in the method generated.

Additional context

The original API Specification that I'm consuming have this:
"parameters": [ { "name": "base", "in": "path", "required": true, "schema": { "$ref": "#/components/schemas/Currency" } },
I've changed to this (as I'm just consuming the API, I can't change the parameter name):
"parameters": [ { "name": "base", "in": "path", "required": true, "schema": { "$ref": "#/components/schemas/Currency" }, **"x-client-name": "baseCurrency"** },

But it still generating the code as this:
public global::MyCleintWithBaseWithExtRequestBuilder WithBaseWithExt(string base, string ext)

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done ✔️

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions