Skip to content

Releases: Azure/typespec-azure

@azure-tools/[email protected]

08 Aug 14:09
4ed008b
Compare
Choose a tag to compare

Bug Fixes

  • #1279 fix the included versions value in typespec-autorest-canonical emitter

Bump dependencies

  • #1219 Update dependencies

@azure-tools/[email protected]

29 Jul 16:00
4434dc2
Compare
Choose a tag to compare

Bug Fixes

  • #1244 The baseType will be undefined if the SdkBuiltInType, SdkDateTimeType, SdkDurationType is a std type
  • #1251 Change output for HttpPart<T>[]

@azure-tools/[email protected]

25 Jul 15:30
a81147c
Compare
Choose a tag to compare

Bug Fixes

  • #1231 Fix the duplicate usageflags values for json and xml
  • #1203 Have @clientName work for operation groups as well
  • #1222 Validate @clientName conflict for operations inside interface

Features

  • #1090 Support model format of @multipartBody
  • #1237 Expose createTcgcContext, which is the minimal context object that handles scope
  • #1223 Report error diagnostic when trying to flattening a model with polymorphism
  • #1076 Add example types support
  • #1204 Add xml usage and change enumvalue arg representation in generic decorators

Breaking Changes

  • #1015 Refactor tcgc build-in types, please refer pr's description for details and migration guides

@azure-tools/[email protected]

25 Jul 15:30
a81147c
Compare
Choose a tag to compare

Features

  • #1237 Use new createTcgcContext from tcgc lib, which is the minimal context object that handles scope

@azure-tools/[email protected]

25 Jul 15:30
a81147c
Compare
Choose a tag to compare

Features

  • #1237 Use new createTcgcContext from tcgc lib, which is the minimal context object that handles scope

[email protected]

17 Jul 01:57
5b140ca
Compare
Choose a tag to compare

@azure-tools/typespec-autorest

Bug Fixes

  • #1081 Fix patch models for common-types

Bump dependencies

  • #1104 Dependency updates July 2024

Features

  • #1116 Resolve Arm Common Definitions for enums and unions as well
  • #955 Use emit-lro--options emitter option to control emission of x-ms-long-running-operation-options
  • #955 Add support for displaying lro options in typespec-autorest based on lro metadata
  • #1123 Removed direct reference to OpenAPI extension x-ms-azure-resource in ARM library and replaced with @Azure.ResourceManager.Private.azureResourceBase decorator. It is only used internally on base resource types. autorest emitter has been updated to check the decorator and still emit x-ms-azure-resource extension in swagger.

Breaking Changes

  • #1105 x-ms-client-flatten extension on some of resource properties property is now configurable to be emitted by autorest emitter. Default is false which will skip emission of that extension.

@azure-tools/typespec-azure-core

Bug Fixes

  • #927 Remove explicit all rulesets

Bump dependencies

  • #1104 Dependency updates July 2024

@azure-tools/typespec-azure-portal-core

Bump dependencies

  • #1104 Dependency updates July 2024

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

Bug Fixes

  • #1166 Fix #1048 Allow void in final result for Azure-AsyncOperation header
  • #1156 Minor fix to make foundations and common-type more consistent.
  • #1102 Fixing typo
  • #1139 LocationResourceParameter should be azureLocation instead of string
  • #1111 Fix the type discrepancy issue for property userAssignedIdentities in common types V5 ManagedServiceIdentity
  • #927 Remove explicit all rulesets
  • #1081 Fix ArmResourcePatch templates and incorporate common-types updates
  • #1144 Tweak regex to validate Arm keys

Bump dependencies

  • #1104 Dependency updates July 2024

Features

  • #1116 Link CommonTypes enums and unions to the swagger common types
  • #1161 Added an optional template parameter on TrackedResource, ProxyResource, and ExtensionResource ARM templates that allows brownfield services to customize the optionality of the ARM resource properties field.
  • #1123 Removed direct reference to OpenAPI extension x-ms-azure-resource in ARM library and replaced with @Azure.ResourceManager.Private.azureResourceBase decorator. It is only used internally on base resource types. autorest emitter has been updated to check the decorator and still emit x-ms-azure-resource extension in swagger.

Breaking Changes

  • #1093 Removing $armRenameListByOperation decorator so operation id is directly derived from operation name. Previously operation id is statically resolved and fixed :

  • For top level resources, [Resource]_ListByResourceGroup

  • For child resources, [Resource]_ListBy[ParentResource]

With this change, the operation name will form the second part of the operation id, just like other ARM operation templates.

-list is ArmResourceListByParent<Employee>;
+listByLocation is ArmResourceListByParent<Employee>;

You can modify the operation name to match existing spec to avoid breaking changes.

  • #1146 Moved @armRenameListByOperation into Azure.ResourceManager.Private namespace. Adding back original listByParent doc resolution logic to keep swagger changes to minimal.
  • #1105 x-ms-client-flatten extension on some of resource properties property is now configurable to be emitted by autorest emitter. Default is false which will skip emission of that extension.

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

Bug Fixes

  • #1142 TCGC, Add description to SdkHttpResponse
  • #1102 Fixing typo
  • #1157 findContextPath need to handle nested operation group, also refine the logic for naming and composing cross language definition id

Bump dependencies

  • #1104 Dependency updates July 2024

Features

  • #1152 add .generateConvenient and .generateProtocol for service methods. These booleans tell emitters whether to generate convenient and protocol versions for the method
  • #1129 add UsageFlags.Json. Will be set if a model is used with a JSON content type
  • #1045 filter api versions enum to only include GA versions if default value is GA

Breaking Changes

  • #1078 remove experimental_ prefix from sdkPackage. Now it's just called sdkPackage.

@azure-tools/[email protected]

17 Jul 18:46
44f863d
Compare
Choose a tag to compare

Bug Fixes

  • #1186 fix access and usage calculation for nested model/enum in spread model
  • #1185 fix idempotent issue for spread

Features

  • #1119 Report diagnostics on @clientName conflicts

@azure-tools/[email protected]

17 Jul 01:57
5b140ca
Compare
Choose a tag to compare

Bug Fixes

  • #927 Add rule @azure-tools/typespec-azure-core/friendly-name to data-plane and resource-manager rulesets

Bump dependencies

  • #1104 Dependency updates July 2024

@azure-tools/[email protected]

17 Jul 01:57
5b140ca
Compare
Choose a tag to compare

Bug Fixes

  • #1065 set option "use-read-only-status-schema" to true to fix ProvisioningStateMustBeReadOnly bug;
    add isArmCommonType check to avoid decorator validation in canonical emitter
  • #1065 update the canonical swagger file folder name

Bump dependencies

  • #1104 Dependency updates July 2024

@azure-tools/[email protected]

09 Jul 10:41
cd43e6b
Compare
Choose a tag to compare

Bug Fixes

  • #1120 fix wrong client resolving from multiple call of context creation for versioning tsp
  • #1067 Unify casing of datetime spelling to DateTime. Change interface names to SdkDateTimeType, SdkUtcDateTimeType, and SdkOffsetDateTimeType
  • #1113 Add Content-Type to response headers
  • #1135 fix wrong handling for one variant union

Features

  • #966 export decorators in allow list to all sdk types
  • #1075 Replace tspNamespace with crossLanguageDefinitionId.
  • Remove tspNamespace in SdkEnumType, SdkModelType, SdkUnionType, SdkArrayType.
  • Add crossLanguageDefinitionId to SdkUnionType and SdkArrayType.
  • #1069 Add Error usage to UsageFlags

Breaking Changes

  • #886 always spread models and aliases with ...