Releases: Azure/typespec-azure
Releases · Azure/typespec-azure
@azure-tools/[email protected]
@azure-tools/[email protected]
Bug Fixes
- #1606 overwrite original value when set multiple value for same decorator
@azure-tools/[email protected]
Bug Fixes
- #1673 Fix
ArmProviderActionAsync
to correctly return 202 responses.
[email protected]
@azure-tools/typespec-autorest
Bump dependencies
- #1534 Bump dependencies
Features
- #1547 Added support to use Scalar and Object as default types
- #1627 Adding support for loading example files from nested sub-folders.
@azure-tools/typespec-azure-core
Bug Fixes
- #1416 Fix #1180 Return StatusMonitor result field for non-resource PUT operations in getLroMetadata.finalResult
Bump dependencies
- #1534 Bump dependencies
@azure-tools/typespec-azure-portal-core
Bump dependencies
- #1534 Bump dependencies
@azure-tools/typespec-azure-resource-manager
Bug Fixes
- #1416 Fix #1180 Return StatusMonitor result field for non-resource PUT operations in getLroMetadata.finalResult
- #1551 Correct ManagedServiceIdentityType versioning issue
- #1537 Fix missing-x-ms-identifier rule not checking base class for properties
Bump dependencies
- #1534 Bump dependencies
Features
- #1639 Adding
ArmProviderActionSync
andArmProviderActionAsync
templates to the ARM library to perform actions at the subscription and tenant levels. - #1512
x-ms-skip-url-encoding
should be replaced withallowReserved
- #1505 Added common-types managed identity with delegation and network security perimeter
- #1555 Add
no-empty-model
rule
@azure-tools/typespec-client-generator-core
Bug Fixes
- #1511 Fix logic to check conflicting usage for model of multipart body and regular body
- #1629 do not promote api version param to client if service is not versioned
- #1630 do not override client default value for api version param in non-versioning service
- #1607 set service of og in using time instead of setting time
Bump dependencies
- #1534 Bump dependencies
Features
Deprecations
- #1613 deprecate description in
SdkExampleBase
Breaking Changes
- #1560 Remove
.description
and.details
from deprecated api surface
@azure-tools/[email protected]
Bug Fixes
- #1659 remove projection for source model since typespec core has already fixed the issue
@azure-tools/[email protected]
@azure-tools/[email protected]
Bump dependencies
- #1534 Bump dependencies
@azure-tools/[email protected]
Bug Fixes
- #1592 change example mapping logic to allow operation id with/without renaming
- #1589 In
0.46.1
we changed the type ofresponses
inSdkHttpOperation
fromMap<number | HttpRange, SdkHttpResponse>
toSdkHttpResponse[]
,exceptions
inSdkHttpOperation
fromMap<number | HttpRange | "*", SdkHttpResponse>
toSdkHttpResponse[]
,
and added astatusCodes
property toSdkHttpResponse
. But thestatusCodes
is defined asnumber | HttpRange | "*"
, which loses the information that the responses inresponses
property could never have a*
as its statusCodes.
This PR adds a new typeSdkHttpErrorResponse
with thestatusCodes
ofnumber | HttpRange | "*"
, and changes the type ofstatusCodes
inSdkHttpResponse
tonumber | HttpRange
to be precise.
@azure-tools/[email protected]
Bug Fixes
- #1512
x-ms-skip-url-encoding
should be replaced withallowReserved
@azure-tools/[email protected]
Bug Fixes
- #1491 Fix naming logic for anonymous model wrapped by
HttpPart
- #1542 Fix
subscriptionId
for ARM SDK - #1558 Handle orphan types in nested namespaces
- #1554 Fix
onClient
setting for client initialization parameters applied to an interface
Breaking Changes
- #1540
- The type of
responses
andexceptions
inSdkHttpOperation
changed fromMap<number | HttpStatusCodeRange | "*", SdkHttpResponse>
toSdkHttpResponse[]
. - The type of
responses
inSdkHttpOperationExample
changed fromMap<number, SdkHttpResponseExampleValue>
toSdkHttpResponseExampleValue[]
. SdkHttpResponse
adds a new propertystatusCodes
to store its corresponding status code or status code range.
Migration hints:
The type changed from map to array, and the key of the map is moved as a new property of the value type. For example, for code like this:
you could do the same in this way:for (const [statusCodes, response] of operation.responses)
for (const response of operation.responses) { const statusCodes = response.statusCodes; }
- The type of
- #1463
- The kind for
unknown
renamed fromany
tounknown
. - The
values
property inSdkUnionType
renamed tovariantTypes
. - The
values
property inSdkTupleType
renamed tovalueTypes
. - The example types for parameter, response and
SdkType
has been renamed toXXXExampleValue
to emphasize that they are values instead of the example itself. - The
@format
decorator is no longer able to change the type of the property.
- The kind for
- #1539
- change
encode
inSdkBuiltInType
to optional. - no longer use the value of
kind
asencode
when there is no encode on this type.
- change
- #1541 no longer export the
SdkExampleValueBase
interface. This type should have no usage in downstream consumer's code. If there is any usage, please replace it withSdkExampleValue
.