0.54.0
TypeSpec Core 1.0 Release Candidate See changes to the TypeSpec language and core libraries
Breaking Changes
Section titled “Breaking Changes”@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #2466 Reorder clients, enums, models and unions.
- #2456 Remove deprecated staffs:
UsageFlags.Error->UsageFlags.ExceptionSdkClientType.initialization->SdkClientType.clientInitialization.paramtersSdkPathParameter.urlEncode->SdkPathParameter.allowReservedSdkClientAccessor->SdkClientType.parent/SdkClientType.childrenSdkExampleBase.description->SdkExampleBase.doc
- #2447 Split emitter options into
UnbrandedSdkEmitterOptionsandBrandedSdkEmitterOptions. Each flag will be exported individually, so emitters can choose which flags to support - #2421 Removed
package-nameandflatten-union-as-enumfromSdkEmitterOptions,clientNamespacefromSdkClientType/SdkNullableType/SdkEnumType/SdkUnionType/SdkModelType,packageNamefromTCGCContext,nameSpacefromSdkClientType,name/rootNamespacefromSdkPackageandgetClientNamespaceStringfunction. All these things should have been deprecated in previous version or not used by any emitters.
Features
Section titled “Features”@azure-tools/typespec-autorest
Section titled “@azure-tools/typespec-autorest”- #2428 Add support for new core HTTP bodyKind: “file”.
@azure-tools/typespec-azure-core
Section titled “@azure-tools/typespec-azure-core”- #2396 add internal scalar type
parameterizedNextLinkto handle next links that don’t meet guidelines
@azure-tools/typespec-azure-resource-manager
Section titled “@azure-tools/typespec-azure-resource-manager”- #2470 Relax
@enforceConstraintto allow validation to pass when a resource is identified using the@legacy.armCustomResourcedecorator. - #2428 Add support for new core HTTP bodyKind: “file”.
@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #2466 Report warning for multiple
@serviceand fall back to the first one. - #2441 add
@deserializeEmptyStringAsNulldecorator - #2368 Add
@clientApiVersionsdecorator to specify all API versions you would like to expose in the client API versions enum. - #2416 Simplely handle duplication for template instance.
- #2412 Support re-injected query parameter for next link.
- #2414 Remove support for old multipart format
- #2469 add
@responseAsBooldecorator - #2428 Add support for new core HTTP bodyKind: “file”.
Bug Fixes
Section titled “Bug Fixes”@azure-tools/typespec-autorest
Section titled “@azure-tools/typespec-autorest”- #2459 Fix doc on HttpPart properties not being carried to
formDataparameter - #2464 Fix multipart not applying
x-ms-client-namewhen using an explicit part name different from the property name
@azure-tools/typespec-client-generator-core
Section titled “@azure-tools/typespec-client-generator-core”- #2480 Consider method parameter model when generating name for anonymous model.
- #2439 Resolve generated name for anonymous model conflict with user-defined type name.
- #2471 Change diagnostic target for
no-corresponding-method-paramerror. - #2471 Change default endpoint’s type to
urlandallowReservedtotrue. - #2436 Remove duplicate line for build-in license info.
- #2411 Do not add encode for bytes according to content type if it has user defined encode.
- #2452 Downgrade override params mismatch to a warning instead of an error
- #2421 Rollback change of
SdkApiVersionParameter.