You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is common that a property/parameter has more than one alias. But now when we use @paramAlias to define multiple parameter alias, it will only accept one alias (the first line).
// main.tsp
namespace My.Service;
op upload(blobName: string): void;
op download(blobName: string): void;
op theName(bName: string): void;
// client.tsp
import "@azure-tools/typespec-client-generator-core";
using Azure.ClientGenerator.Core;
namespace My.Customizations;
model ClientInitOptions {
blobClientName: string;
}
@@clientInitialization(MyService, ClientInitOptions)
@@paramAlias(ClientInitOptions.blobClientName, "blobName");
@@paramAlias(ClientInitOptions.blobClientName, "bName")
We need to support a parameter will have multiple alias.
In above scenario, ClientInitOptions.blobClientName has two alias, and both parameter blobName in upload/download operation and bName in theName operation will be bumped to client level.
The text was updated successfully, but these errors were encountered:
It is common that a property/parameter has more than one alias. But now when we use
@paramAlias
to define multiple parameter alias, it will only accept one alias (the first line).We need to support a parameter will have multiple alias.
In above scenario,
ClientInitOptions.blobClientName
has two alias, and both parameterblobName
in upload/download operation andbName
in theName operation will be bumped to client level.The text was updated successfully, but these errors were encountered: