Skip to content

Consider adding switch to opt out of options type name disambiguation #246

@jhendrixMSFT

Description

@jhendrixMSFT

For FooClient, all client/client method options will have the prefix FooClient. This is to disambiguate the case when an SDK contains multiple clients and two (or more) clients have a method with the same name (e.g. SomeMethod), Without the prefix, SomeMethodOptions would collide.

For SDKs with a single client, and that will always have a single client, the prefix is unnecessary and creates ugly names. We could consider adding a switch to opt out of this prefix. It works IFF an SDK contains a single client, else an error is generated (this is what we do in the go emitter). Note that opting in and then later opting out would result in a breaking change. So, one must be 100% confident that the SDK in question will always contain only one client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BlockedCodeGenIssues that relate to code generation

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions