0.61.0
TypeSpec Core 1.5 See changes to the TypeSpec language and core libraries
Breaking Changes
Section titled “Breaking Changes”@azure-tools/typespec-azure-core
Section titled “@azure-tools/typespec-azure-core”- #3266 Remove legacy Azure.Core paging. The following was removed
@pagedResultdecorator@itemsdecorator- [API]
getPagedResult->getPagingOperationin@typespec/compiler - [API]
getItems - [API]
getNextLink
- #3214 Remove unused
@nextPageOperationdecorator.
@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #3286 Change
isApiVersionlogic. If a service is not versioning, the function always return false.
Features
Section titled “Features”@azure-tools/typespec-autorest
Section titled “@azure-tools/typespec-autorest”-
#3358 Support x-ms-secret in model types
-
#3358 Allow x-ms-long-running-operation for resource get
-
#3360 Added an
xml-strategyoption to control whether the emitter outputs XML serialization metadata. The options are:xml-strategy: xml-service: Emit XML serialization metadata for the whole service and all its schemas if the service uses the “application/xml” content-type.xml-strategy: none: Never emit XML serialization metadata.
-
#3290 Added support for emitting XML annotations.
@azure-tools/typespec-azure-core
Section titled “@azure-tools/typespec-azure-core”- #3325 Export
isPreviewVersionfor@previewVersiondecorator.
@azure-tools/typespec-azure-resource-manager
Section titled “@azure-tools/typespec-azure-resource-manager”- #3356 Support
@identifierson array model
@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #3198 Add
getHttpOperationParametersForClientParameterhelper to find corresponding HTTP parameter list for a client initialization parameter. - #3325 Add support for
@previewVersiondecorator in API version filtering. TCGC now checks for the@previewVersiondecorator on enum members in addition to the existing regex-based preview version filtering. - #3233 Allow
@alternateTypeto reference external types as well
Bug Fixes
Section titled “Bug Fixes”@azure-tools/typespec-autorest
Section titled “@azure-tools/typespec-autorest”- #3266 Cleanup usage of legacy Azure.Core paging apis
@azure-tools/typespec-azure-core
Section titled “@azure-tools/typespec-azure-core”-
#3346 [rpc-operation-request-body] Correctly ignores properties marked with
@bodyIgnore -
#3268 Remove versioning
@useDependency(Azure.Core.Versions.v1_preview2)
@azure-tools/typespec-azure-resource-manager
Section titled “@azure-tools/typespec-azure-resource-manager”-
#3268 Remove versioning
@useDependency(Azure.ResourceManager.Versions.v1_preview2)
@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #3353 Handle wrong
api-versionconfig. - #3285 Fix missing doc for nullable type.
- #3324 Refine error message for
@override. - #3266 Cleanup usage of legacy Azure.Core paging apis
- #3361 Fix bug ignoring
@clientNamedecorator when applied to@clientclients - #3311 Fix missing example for operation directly extends from templated interface.