0.42.0 May 2024
Release Notes Version 0.42.0 - May 2024
See TypeSpec Core 0.56 release notes
Breaking Changes
@azure-tools/typespec-autorest
- #774 Version enum is now omitted by default. Use
version-enum-strategy: includeto revert behavior.
@azure-tools/typespec-azure-core
- #521 Switching ProvisioningState from enum to Open union
@azure-tools/typespec-azure-resource-manager
- #521 Switching ProvisioningState from enum to Open union
Deprecations
@azure-tools/typespec-azure-resource-manager
-
899f640 Renaming internal TypeSpec ARM foundation model names to be consistent with ARM common-type definitions. However, these are
Azure.Resource.Manager.Foundationsmodels that would not normally be used directly in service specs. -
Deprecate
Foundations.ArmResource.Foundations.Resourceshould be used instead. -
Deprecate
Foundations.ResourceSkuType.Foundations.Skushould be used instead. -
Deprecate
Foundations.ResourcePlanType.Foundations.Planshould be used instead. -
Deprecate
Foundations.TrackedResourceBase.Foundations.TrackedResourceshould be used instead. -
Deprecate
Foundations.ProxyResourceBase.Foundations.ProxyResourceshould be used instead. -
Deprecate
Foundations.ExtensionResourceBase.Foundations.ExtensionResourceshould be used instead.
Standardizing mix-in model names with consistent Property suffix.
-
Deprecate
ManagedServiceIdentity.ManagedServiceIdentityPropertyshould be used instead.Example:
...ManagedServiceIdentity;...ManagedServiceIdentityProperty; -
Deprecate
ManagedSystemAssignedIdentity.ManagedSystemAssignedIdentityPropertyshould be used instead.Example:
...ManagedSystemAssignedIdentity;...ManagedSystemAssignedIdentityProperty; -
Deprecate
EntityTag.EntityTagPropertyshould be used instead.Example:
...EntityTag;...EntityTagProperty; -
Deprecate
ResourceKind.ResourceKindPropertyshould be used instead.Example:
...ResourceKind;...ResourceKindProperty; -
Deprecate
ResourcePlan.ResourcePlanPropertyshould be used instead.Example:
...ResourcePlan;...ResourcePlanProperty; -
Deprecate
ResourceSku.ResourceSkuPropertyshould be used instead.Example:
...ResourceSku;...ResourceSkuProperty; -
Deprecate
ManagedBy.ManagedByPropertyshould be used instead.Example:
...ManagedBy;...ManagedByProperty;
Features
@azure-tools/typespec-autorest
- #765 [API] Refactor to provide functions to get the OpenAPI programtically
@azure-tools/typespec-azure-resource-manager
- #661 Fixing ArmResource base model and add an easier way to define Resource Name parameter
- #736 Adding standard ExtendedLocation definition for ARM library
Bug Fixes
@azure-tools/typespec-autorest
- #745 prevent tcgc versioning projection
- #293 Add support for new
@body@bodyRootand@bodyIgnoredecorators
@azure-tools/typespec-azure-core
- #619 Add
no-generic-numericrule to disable LintDiffIntegerTypeMustHaveFormat - #760 Fix
rpc-operation-request-bodyrule not actually checking for a body parameter. - #694 Fix crash when
Traitsbuilders gets passed non model - #710 Exempt versioning enums and discriminator enum/unions from
documentation-requiredrule. - #740 Require documentation on most unions.
- #293 Update to support new meaning of
@body
@azure-tools/typespec-azure-resource-manager
- #605 Specify the fully qualified name of
@OpenAPI.extensiondecorator inmissing-x-ms-identifierslinter warning. - #400 Updated
ManagedIndentityandCustomerManagedKeyTypeSpec model definition to be consistent with Swagger commont-types - #567 Enable
arm-common-types-versionrule by default. - #751 Allow
@patternto be provided on a scalar - #702 Fix
arm-resource-name-patternrule codefix producing invalid syntax - #293 Update to support new meaning of
@body