0.48.0 November 2024
TypeSpec Core 0.62 See changes to the TypeSpec language and core libraries
Potential Breaking changes
Ambiguous @nextLink
Ambiguous reference
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.
Features
@azure-tools/typespec-autorest
- #1566 Emit
x-ms-pageable
whenever possible for new core paging model
@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
@azure-tools/typespec-azure-core
- #1545 Add docs for linting rules and stop excluding non
Azure.
namespace
@azure-tools/typespec-azure-resource-manager
- #1759 Fix the
ArmOperationStatus
model to match the Azure-AsyncOperation Resource format, where theid
is of typestring
instead ofCore.uuid
. - #1741 Fix the
arm-resource-invalid-action-verb
rule. The rule should only allow@post
and@get
verbs, but it wasn’t flagging other verbs. - #1744 Fix the
x-ms-identifier
rule. Thex-ms-identifier
supports indexing into inner properties, but the linter does not support that and reports a warning.