Skip to content

0.49.0 December 2024

Notable changes

Azure Resource Manager: Added Common Types Version 6

Added support for version 6 of Azure common types, including changes to private links and managed identity

Breaking changes

Specs should use the core decorator for @nextLink

Before

model WidgetPage {
items: Widget[];
@Azure.Core.nextLink
nextLink: string;
}

After

model WidgetPage {
items: Widget[];
//In the TypeSpec namespace
@nextLink
nextLink: string;
}

Features

@azure-tools/typespec-azure-core

  • #1272 Add armResourceType scalar, and update common-types to use the new scalar

@azure-tools/typespec-azure-resource-manager

  • #1689 Add common-types v6 with changes in managed identity, private links, and types.
  • #1272 Add armResourceType scalar, and changed some properties to be armResourceType instead of string
  • #1881 common-types consistency with original swagger
  • #1923 Add the @Azure.ResourceManager.Legacy.customAzureResource decorator to identify ARM resources that do not use the base resource types.
  • #1740 Update the arm no-response-body rule to behave similarly to the core rule, but with the additional requirement that the 202 response can and should also be empty

@azure-tools/typespec-client-generator-core

  • #1812 add SdkCookieParameter type and support @cookie in TypeSpec http lib
  • #1887 1. Introduce new usage: LroInitial, LroPolling, LroFinalEnvelope.
  1. usage and access now properly propagate on polling model, final result and final envelope result of lroMetadata.
  • #1783 Implement scope negation for TCGC decorators
  • #1912 support emit code model

Bug Fixes

@azure-tools/typespec-autorest

  • #1838 Emit error @azure-tools/typespec-autorest/no-matching-version-found when the version option is used and does not match any versions of the service.

@azure-tools/typespec-azure-core

  • #1886 Remove Azure.Core.nextLink as there is a nextLink instance in TypeSpec.nextLink, which is causing an ambiguous problem between the two.

@azure-tools/typespec-azure-resource-manager

  • #1866 Fix the no-empty-model rule to prevent it from being triggered for Records, as this is already covered by another rule.
  • #1886 Replace usage of Azure.Core.nextLink to TypeSpec.nextLink.