March 2024
Release Notes March 2024 (2024-03-05)
Section titled “Release Notes March 2024 (2024-03-05)”See TypeSpec Core release notes
Breaking changes
Section titled “Breaking changes”@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #295 [API] Split datetime type into utcDateTime and offsetDateTime to remain in sync with tsp
Features
Section titled “Features”@azure-tools/typespec-autorest
Section titled “@azure-tools/typespec-autorest”- #337 Add support for all properties of openapi
infoobject on the@infodecorator - #277 Support
@flattenPropertydecorator.
@azure-tools/typespec-azure-core
Section titled “@azure-tools/typespec-azure-core”@azure-tools/typespec-azure-resource-manager
Section titled “@azure-tools/typespec-azure-resource-manager”- #304 Add
arm-no-recordrule. - #283 Added
ArmResourceHeadoperation template - #298 ARM: add
arm-delete-response-codesrule. - #317 Add ruleset
canonical-versioningto Azure Resource Manager library.
@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #341 add support for azureLocation scalar in azure core
- #242 add flattened property onto SdkBodyModelPropertyType
- #315 add validation on import of tcgc and remove duplicate validation warnings
- #350 add helper function getCrossLanguagePackageId. getCrossLanguagePackageId returns a package id that is consistent across languages, allowing emitters to identify that they are generating from the same service tsp
- #306 add getClientTypeWithDiagnostics and getAllModelsWithDiagnostics to get values back with diagnostics
@azure-tools/typespec-azure-portal-core
Section titled “@azure-tools/typespec-azure-portal-core”- #287 adding new decorator called
@promotionand adding validation rule for@about.LearnMoreDocs
Bug Fixes
Section titled “Bug Fixes”@azure-tools/typespec-azure-core
Section titled “@azure-tools/typespec-azure-core”- #231 Azure
PagetypenextLinkproperties are now marked asreadonly
@azure-tools/typespec-azure-resource-manager
Section titled “@azure-tools/typespec-azure-resource-manager”- #323 Adding
@visibility("read")& optional linting rules linting rules for ARMprovisioningState - #366 Fix for issue #254 cannot customize response in ARM PUT templates
@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #305 getAllModels will return models only used as final envelope results in non-ARM definitions
- #335 unions with only null and another type will not be converted to union
- #362 enhance logic for value type of enum and union as enum
- #314 support @clientName for extensible enum variant
- #328 add support for anonymous union as enum and fix union as enum variant discriminator typing problem
- #301 Add usage calculation for additional properties with model type
- #327 rollback some of the breaking changes for common model types method
- #260 allow models to have a union variant as a discriminator
- #286 don’t throw for unknown format
- #274 Update doc for
@accessand@usage