Releases: Azure/typespec-azure
Releases · Azure/typespec-azure
@azure-tools/[email protected]
Features
- #1237 Use new
createTcgcContext
from tcgc lib, which is the minimal context object that handles scope
@azure-tools/[email protected]
Features
- #1237 Use new
createTcgcContext
from tcgc lib, which is the minimal context object that handles scope
[email protected]
@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 emitx-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
, andExtensionResource
ARM templates that allows brownfield services to customize the optionality of the ARM resourceproperties
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 emitx-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
intoAzure.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 fromsdkPackage
. Now it's just calledsdkPackage
.
@azure-tools/[email protected]
@azure-tools/[email protected]
@azure-tools/[email protected]
@azure-tools/[email protected]
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 toSdkDateTimeType
,SdkUtcDateTimeType
, andSdkOffsetDateTimeType
- #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
withcrossLanguageDefinitionId
. - Remove
tspNamespace
inSdkEnumType
,SdkModelType
,SdkUnionType
,SdkArrayType
. - Add
crossLanguageDefinitionId
toSdkUnionType
andSdkArrayType
. - #1069 Add
Error
usage toUsageFlags
Breaking Changes
- #886 always spread models and aliases with
...
@azure-tools/[email protected]
Bug Fixes
- #1000 Add
name
andtspNamespace
toSdkArrayType
- #1009 add
tspNamespace
toSdkModelType
,SdkEnumType
,SdkEnumValueType
andSdkUnionType
- #1033 only expose top level client in
SdkPackage
- #1070 don't let optional
.contentTypes
on response body be empty. If it's empty, just set it to undefined - #873 add description for created discriminator property
- #947 support new typespec emitter naming rule
- #990 export
SdkClientAccessor
- #1032 Fix armId not set for scalar type armResourceIdentifier.
- #1038 add support for list of scopes
- #1064 remove deprecated
.nameInClient
property fromSdkModelPropertyType
s - #1050 Fix SdkContext.arm
- #1066 Add linter for empty
@clientName
values
[email protected]
@azure-tools/typespec-autorest
Bug Fixes
- #923 When emitting version enum only include current version and mark with
modelAsString: true
- #902 Add support for new multipart constructs in http library
- #432 Add support for tuple literals as default values
Bump dependencies
- #867 Update dependencies - May 2024
Features
- #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
- #972 Add API to programmatically get all the OpenAPI2 documents for all services at all versions in a spec
- #811 Add dependency on typespec-azure-resource-manager to resolve the spec repo common types paths
- #813
@summary
sets the title of definitions
Breaking Changes
- #473 Enums are not extensible by default anymore. Update to an extensible union
union Foo {a: "a", b: "b", string}
@azure-tools/typespec-azure-core
Bug Fixes
- #693 Add new
no-string-discriminator
linter rule suggesting using an explicit extensible union as the discriminator kind. - #851 Convert
OperationState
enum to an open union
Bump dependencies
- #867 Update dependencies - May 2024
Features
- #955 Add override decorator @useFinalStateVia for lro resolution when multiple resolution pathways exist
- #707 Remove linter rules that are not relevant anymore:
use-extensible-enum
andno-fixed-enum-discriminator
- #432 Add support for values
@azure-tools/typespec-azure-portal-core
Bump dependencies
- #867 Update dependencies - May 2024
@azure-tools/typespec-azure-resource-manager
Bug Fixes
- #998 Adding legacy v4 ManagedServiceIdentity model to avoid breaking changes in specs with mixed v3 and v4 common type reference
- #955 Remove OpenAPI dependencies from ARM LRO templates and test LRO overrides
- #929 Adding an overload parameter to ResourceNameParameter that allows
name
type to be set to string union type. - #860 Fix
percentComplete
property onOperationStatus
should be a float not an int - #979 Make Resource Properties Bag Updatable
Bump dependencies
- #867 Update dependencies - May 2024
Features
@azure-tools/typespec-client-generator-core
Bug Fixes
- #904 don't add constant value to generated name
- #873 add description for created discriminator property
- #947 support new typespec emitter naming rule
- #930 expose enums on response headers
- #962 refine logic of core model filtering
- #950 remove duplicated types in TCGC
- #936 enhance cross language definition id logic
- #935 add read only logic to usage propagation
Bump dependencies
- #867 Update dependencies - May 2024
Breaking Changes
@azure-tools/[email protected]
Bug Fixes
- #905 Add
tspMain
for playground bundling