Closed weidongxu-microsoft closed 2 weeks ago
Relate to https://github.com/Azure/typespec-azure/issues/746
Service dev should be able to specify which api-version to be included in ServiceVersion class, when generating SDK.
If this is a feature that would be shared by multiple languages, we may use a decorator in client.tsp, e.g.
@@serviceVersion(ApiVersion.v2023_04_01); @@serviceVersion(ApiVersion.v2024_02_01);
or tspconfig.yaml
serviceVersions: - "2023-04-01" - "2024-02-01"
Or we can use client.tsp about useDependency
useDependency
@useDependency(ApiVersion.v2023_04_01); @useDependency(ApiVersion.v2024_02_01); namespace Client;
use https://github.com/Azure/typespec-azure/issues/965 instead
Relate to https://github.com/Azure/typespec-azure/issues/746
Service dev should be able to specify which api-version to be included in ServiceVersion class, when generating SDK.
If this is a feature that would be shared by multiple languages, we may use a decorator in client.tsp, e.g.
or tspconfig.yaml