0.48.0 November 2024
TypeSpec Core 0.62 See changes to the TypeSpec language and core libraries
Potential Breaking changes
Section titled “Potential Breaking changes”Ambiguous @nextLink Ambiguous reference
Section titled “Ambiguous @nextLink ”If defining custom paging response using Azure.Core @pagedResult and @nextLink, the @nextLink decorator from Azure.Core can be result in an ambiguous reference. The fix is to simply use the fully qualified name.
@pagedResultmodel List { items?: string[];
@nextLink @Azure.Core.nextLink nextLink?: string;}Features
Section titled “Features”@azure-tools/typespec-autorest
Section titled “@azure-tools/typespec-autorest”- #1566 Emit
x-ms-pageablewhenever possible for new core paging model
@azure-tools/typespec-azure-resource-manager
Section titled “@azure-tools/typespec-azure-resource-manager”- #1670 Add an envelope model for a standard availability zones API contract.
- #1674 Remove restrictions requiring Foundation.Resource in ArmResourceListByParent. This will allow using the template for non-standard resources / collection actions that return a list.
As part of the change, the response can now return any type. This will be specified in the response section using a new
ResourceListCustomResult<type>model.
Bug Fixes
Section titled “Bug Fixes”@azure-tools/typespec-azure-core
Section titled “@azure-tools/typespec-azure-core”- #1545 Add docs for linting rules and stop excluding non
Azure.namespace
@azure-tools/typespec-azure-resource-manager
Section titled “@azure-tools/typespec-azure-resource-manager”- #1759 Fix the
ArmOperationStatusmodel to match the Azure-AsyncOperation Resource format, where theidis of typestringinstead ofCore.uuid. - #1741 Fix the
arm-resource-invalid-action-verbrule. The rule should only allow@postand@getverbs, but it wasn’t flagging other verbs. - #1744 Fix the
x-ms-identifierrule. Thex-ms-identifiersupports indexing into inner properties, but the linter does not support that and reports a warning.