0.46.0 September 2024
Release Notes Version 0.46.0 - September 2024
Section titled “Release Notes Version 0.46.0 - September 2024”See TypeSpec Core 0.60 release notes
Breaking Changes
Section titled “Breaking Changes”@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #1440 Filter Core models directly instead of clearing their usage
- #1451 Have no client parameters appear on method signatures
- #1420 Removes deprecated exports of previous version
Deprecations
Section titled “Deprecations”@azure-tools/typespec-autorest
Section titled “@azure-tools/typespec-autorest”-
#1368 Replace
examples-directorywithexamples-dirwhich will validate an absolute path is providedCase 1: Examples are in
examplesdirectory next totspconfig.yaml. In this case the option can just be removedexamples-directory: examplesexamples-directory: {project-root}/examplesCase 2: Examples are in a different directory
examples-directory: autorest-examplesexamples-dir: {project-root}/autorest-examplesexamples-directory: {project-root}/autorest-examplesexamples-dir: {project-root}/autorest-examples
@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #1395 deprecate
@internaldecorator andisInternalhelper function
Features
Section titled “Features”@azure-tools/typespec-autorest
Section titled “@azure-tools/typespec-autorest”- #1455 Respect
@clientNamefor definition names(model, enums, union, etc.), enum and union member and for parameters - #1449 Add support for custom item name in
x-ms-pageable
@azure-tools/typespec-azure-core
Section titled “@azure-tools/typespec-azure-core”- #1342 Replace
no-operation-idlinter rule with a more genericno-openapirule guarding against any use of openapi decorators
@azure-tools/typespec-azure-resource-manager
Section titled “@azure-tools/typespec-azure-resource-manager”- #1482 Add mobo type to TypeSpec-Azure common types
@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #1305 Add Namespace as target for @access decorator
- #1398 add
@clientInitializationdecorator - #1253 add parent client info to
SdkClientType - #1253 add
listSubClientshelper func - #1379 add
docandsummaryto tcgc types - #1387 add default path for example detection
- #1395 do propagation when override access or usage
- #1388 use original model for spread if it is from a simple spread
- #1303 allow
@usageto apply to namespaces
Bug Fixes
Section titled “Bug Fixes”@azure-tools/typespec-autorest
Section titled “@azure-tools/typespec-autorest”- #1436 Fixes bug where defining multiple services in a project resulted in each openapi output containing the same single service definition.
@azure-tools/typespec-azure-resource-manager
Section titled “@azure-tools/typespec-azure-resource-manager”- #1359
arm-no-recordrule should warn about any use ofRecord<X>not just when inside resource properties
@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #1476 Fix to add client signature
subscriptionIdfor ARM SDK - #1424 do not handle example value with null for model type
- #1424 consider renaming for parameter or property
- #1431 consider renaming when mapping examples
- #1452 TCGC, make content type optional when request body is optional
- #1399 remove import of
UnionEnumVariant - #1432 need to handle projection when finding spread original model
- #1377 Fix getLibraryName for anonymous model which is derived from template
- #1435 Don’t require params introduced by
Azure.Corewith@override - #1410 set sdk method body parameter encode with http content type