Releases: Azure/typespec-azure
[email protected]
@azure-tools/typespec-autorest
Bug Fixes
- #745 prevent tcgc versioning projection
- #293 Add support for new
@body
@bodyRoot
and@bodyIgnore
decorators
Bump dependencies
- #663 Upgrade dependencies
Features
- #765 [API] Refactor to provide functions to get the OpenAPI programtically
Breaking Changes
- #774 Version enum is now omitted by default. Use
version-enum-strategy: include
to revert behavior.
@azure-tools/typespec-azure-core
Bug Fixes
- #619 Add
no-generic-numeric
rule to disable LintDiffIntegerTypeMustHaveFormat
- #760 Fix
rpc-operation-request-body
rule not actually checking for a body parameter. - #694 Fix crash when
Traits
builders gets passed non model - #710 Exempt versioning enums and discriminator enum/unions from
documentation-required
rule. - #740 Require documentation on most unions.
- #293 Update to support new meaning of
@body
Bump dependencies
- #663 Upgrade dependencies
Breaking Changes
- #521 Switching ProvisioningState from enum to Open union
@azure-tools/typespec-azure-portal-core
Bump dependencies
- #663 Upgrade dependencies
@azure-tools/typespec-azure-resource-manager
Bug Fixes
- #605 Specify the fully qualified name of
@OpenAPI.extension
decorator inmissing-x-ms-identifiers
linter warning. - #400 Updated
ManagedIndentity
andCustomerManagedKey
TypeSpec model definition to be consistent with Swagger commont-types - #567 Enable
arm-common-types-version
rule by default. - #751 Allow
@pattern
to be provided on a scalar - #702 Fix
arm-resource-name-pattern
rule codefix producing invalid syntax - #293 Update to support new meaning of
@body
Bump dependencies
- #663 Upgrade dependencies
Features
- #661 Fixing ArmResource base model and add an easier way to define Resource Name parameter
- #736 Adding standard ExtendedLocation definition for ARM library
Deprecations
-
#762 Renaming internal TypeSpec ARM foundation model names to be consistent with ARM common-type definitions.
However, these areAzure.Resource.Manager.Foundations
models that would not normally be used directly in service specs. -
Deprecate
Foundations.ArmResource
.Foundations.Resource
should be used instead. -
Deprecate
Foundations.ResourceSkuType
.Foundations.Sku
should be used instead. -
Deprecate
Foundations.ResourcePlanType
.Foundations.Plan
should be used instead. -
Deprecate
Foundations.TrackedResourceBase
.Foundations.TrackedResource
should be used instead. -
Deprecate
Foundations.ProxyResourceBase
.Foundations.ProxyResource
should be used instead. -
Deprecate
Foundations.ExtensionResourceBase
.Foundations.ExtensionResource
should be used instead. -
#768 Standardizing mix-in model names with consistent
Property
suffix. -
Deprecate
ManagedServiceIdentity
.ManagedServiceIdentityProperty
should be used instead.Example:
-...ManagedServiceIdentity; +...ManagedServiceIdentityProperty;
-
Deprecate
ManagedSystemAssignedIdentity
.ManagedSystemAssignedIdentityProperty
should be used instead.Example:
-...ManagedSystemAssignedIdentity; +...ManagedSystemAssignedIdentityProperty;
-
Deprecate
EntityTag
.EntityTagProperty
should be used instead.Example:
-...EntityTag; +...EntityTagProperty;
-
Deprecate
ResourceKind
.ResourceKindProperty
should be used instead.Example:
-...ResourceKind; +...ResourceKindProperty;
-
Deprecate
ResourcePlan
.ResourcePlanProperty
should be used instead.Example:
-...ResourcePlan; +...ResourcePlanProperty;
-
Deprecate
ResourceSku
.ResourceSkuProperty
should be used instead.Example:
-...ResourceSku; +...ResourceSkuProperty;
-
Deprecate
ManagedBy
.ManagedByProperty
should be used instead.Example:
-...ManagedBy; +...ManagedByProperty;
Breaking Changes
- #521 Switching ProvisioningState from enum to Open union
@azure-tools/typespec-client-generator-core
Bug Fixes
- #788 fix wrong default version for interface from extends
@azure-tools/[email protected]
@azure-tools/[email protected]
@azure-tools/[email protected]
Bug Fixes
- #753 fix usage propagation from sub types
@azure-tools/[email protected]
Bug Fixes
- #748 add crossLanguageDefinitionId onto method types
@azure-tools/[email protected]
Bug Fixes
- #741 use correct default api version when projecting to a specific version
@azure-tools/[email protected]
@azure-tools/[email protected]
@azure-tools/[email protected]
[email protected]
@azure-tools/typespec-autorest
Bug Fixes
- #414 updating autorest to emit response headers in lexicographic order
- #512 Fix: Discriminated inheritance wasn't resolving the
x-ms-discriminator-value
when it had an intermediate model.
Bump dependencies
- #437 Update dependencies
Features
- #407 Add support for new
Azure.Core.armResourceManager
scalar
@azure-tools/typespec-azure-core
Bug Fixes
- #392 Fix
@lroStatus
not detecting default states correctly when using union - #498
no-enum
rule codefix now convert to named variant when the enum had not values (e.g.enum E {a, b}
) - #549 Remove readOnly from nextLink in templates (#418)
- #462 Update
property-name-conflict
linter rule to stop looking and recommending@projectedName
in favor of@clientName
Bump dependencies
- #437 Update dependencies
Features
- #407 Adding new
armResourceIdentifier
scalar to represent an Arm ID - #505 Enable
no-closed-literal
linter rule by default inall
ruleset - #467 Enable
no-enum
rule by default inall
ruleset
@azure-tools/typespec-azure-portal-core
Bump dependencies
- #437 Update dependencies
Features
- #386 put more validation and remove browse.argQuery from proxyResource usage
@azure-tools/typespec-azure-resource-manager
Bug Fixes
- #410 Fixing ArmDeleteLroResponse missing Retry-After header
Bump dependencies
- #437 Update dependencies
Features
- #495 Made
delegatedIdentityClientId
optionalCustomerManagedKeyEncryption
to align with the common types definition. - #514 Add
lro-location-header
rule. - #369 Add
arm-put-operation-response-codes
andarm-post-operation-response-codes
rules. - #359 ARM: add
arm-resource-name-pattern
rule to allow disabling LintDiffResourceNamePattern
rule
Deprecations
- #407 Deprecate
ResourceIdentifier
in favor of newAzure.Core.armResourceIdentifier
@azure-tools/typespec-client-generator-core
Bug Fixes
- #556 ensure apiVersion parameter is always generated with name
apiVersion
- #563 filter out
TypeSpec.ARM
models as well fromsdkPackage.models
- #434 Fix wrong client cache for package clients calculation
- #561 fix template naming for enums
- #508 fix wrong usage calculation for enum value model property
- #517 fix wrong union
generatedName
flag and refine templated model naming - #389 rollback change of union as enum with hierarchy
- #412 �prevent carry over for
@clientName
- #569 don't recursively set
MultipartFormData
usage for models that are properties on aMultipartFormData
model - #572 Set spread model with none usage
- #501 rename UsageFlags.Versioning to UsageFlags.ApiVersionEnum
Bump dependencies
- #437 Update dependencies
Features
- #384 return Versions enum as part of getAllModels
- #538 When no server url is passed, we still set serverUrl to
{endpoint}
and make one templateArg forendpoint
. This way, emitters can always look at a combination of serverUrl and templateArguments to get the full picture - #395 �add a cached getHttpOperation helper function
- #402 �add
discriminatorProperty
ref to discriminated model - #474 create SdkEndpointType to encapsulate templating and url
- #413 Add
@access
and@usage
support for named union - #502 add UsageFlags.MultipartFormData to represent whether a model is used as form data
- #551 add
isGeneratedName
toSdkModelPropertyTypes
- #455 We've added Usage.JsonMergePatch. Usage.Input continues to refer to all inputs, Usage.JsonMergePatch is set if a model is explicitly set as JSON merge patch input body
- #572 Workaround for arm provider method parameter
- #573 support sclar doc
- #393 �give a nonredundant name for templated instance model
- #513 all clients now have an initialization property. whether the initialization property is public or not determines whether an end-user should instantiate that client
Deprecations
- #560 add deprecation for
getResponseMapping()
on method, switch to.resultPath
onSdkServiceMethodResponse
instead - #504 deprecate
.arm
onSdkClientType
. Instead, you should access.arm
on yourSdkContext
- #381 deprecating isErrorOrChildOfError. Users should directly use isErrorModel from the standard TypeSpec library
- #445 Users should call
.name
instead of.nameInClient
onSdkModelPropertyType
s - #447 move nullability onto params and responses. Add nullableValues on SdkArrayType and SdkDictionaryType
- #503 Deprecate
.isError
on anSdkModelType
. WithSdkPackage
, you should not need to know that a model is used as an error. - #511 Remove support for unused
.overloads
and.overloading
onSdkMethod
Breaking Changes
- #451 �adjust generated discriminator property sequence to prevent potential breaking change
- #459 enums are always fixed after we switch to use union to represent extensible enum
- #444 SdkUnionType, SdkEnumType, and SdkModelType will now always have a
.name
property..isGeneratedName
is now a boolean that expresses whether the.name
was generated or described in the tsp - #524 depcreate getParameterMapping and make .bodyParam on SdkHttpOperation a single optional param instead of list
- #536 git status
- #515 change responses from a record to a mapping of status code, range, or default