Skip to content

Releases: Azure/typespec-azure

@azure-tools/typespec-client-generator-core@0.41.3

18 Apr 00:10
bb67111
Compare
Choose a tag to compare

Bug Fixes

  • #665 support typespec new additional properties syntax
  • #680 adjust sequence of properties calculation and discriminator calculation
  • #673 add subscriptionId to client parameters

Bump dependencies

  • #663 Upgrade dependencies

typespec-azure@0.41.0

02 Apr 23:07
88b633a
Compare
Choose a tag to compare

@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 in all ruleset
  • #467 Enable no-enum rule by default in all 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 optional CustomerManagedKeyEncryption to align with the common types definition.
  • #514 Add lro-location-header rule.
  • #369 Add arm-put-operation-response-codes and arm-post-operation-response-codes rules.
  • #359 ARM: add arm-resource-name-pattern rule to allow disabling LintDiff ResourceNamePattern rule

Deprecations

  • #407 Deprecate ResourceIdentifier in favor of new Azure.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 from sdkPackage.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 a MultipartFormData 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 for endpoint. 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 to SdkModelPropertyTypes
  • #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 on SdkServiceMethodResponse instead
  • #504 deprecate .arm on SdkClientType. Instead, you should access .arm on your SdkContext
  • #381 deprecating isErrorOrChildOfError. Users should directly use isErrorModel from the standard TypeSpec library
  • #445 Users should call .name instead of .nameInClient on SdkModelPropertyTypes
  • #447 move nullability onto params and responses. Add nullableValues on SdkArrayType and SdkDictionaryType
  • #503 Deprecate .isError on an SdkModelType. With SdkPackage, you should not need to know that a model is used as an error.
  • #511 Remove support for unused .overloads and .overloading on SdkMethod

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

typespec-azure@0.40.0

06 Mar 03:42
413db2a
Compare
Choose a tag to compare

@azure-tools/typespec-autorest

Bump dependencies

  • #243 Update dependencies

Features

  • #337 Add support for all properties of openapi info object on the @info decorator
  • #277 Support @flattenProperty decorator.

@azure-tools/typespec-azure-core

Bug Fixes

  • #231 Azure Page type nextLink properties are now marked as readonly
  • #258 Implement code fixes for no-enum linter rule

Bump dependencies

  • #243 Update dependencies

Features

  • #341 Add new azureLocation scalar

@azure-tools/typespec-azure-portal-core

Bump dependencies

  • #243 Update dependencies

Features

  • #287 adding new decorator called @promotion and adding validation rule for @about.LearnMoreDocs

@azure-tools/typespec-azure-resource-manager

Bug Fixes

  • #323 Adding @visibility("read") & optional linting rules linting rules for ARM provisioningState
  • #366 Fix for issue #254 cannot customize response in ARM PUT templates

Bump dependencies

  • #243 Update dependencies

Features

  • #304 Add arm-no-record rule.
  • #283 Added ArmResourceHead operation template
  • #298 ARM: add arm-delete-response-codes rule.
  • #317 Add ruleset canonical-versioning to Azure Resource Manager library.

@azure-tools/typespec-client-generator-core

Bug Fixes

  • #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 @access and @usage

Bump dependencies

  • #243 Update dependencies

Features

  • #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

Breaking Changes

  • #295 Split datetime type into utcDateTime and offsetDateTime to remain in sync with tsp

typespec-azure@0.39.0

06 Mar 16:51
2b10ece
Compare
Choose a tag to compare

@azure-tools/typespec-autorest

Minor Changes

  • a1a2be7: Respect @clientName decorator from @azure-rest/typespec-client-generator-core library where @projectedName("client") used to work.

Patch Changes

  • 2f6bbc4: Fix: Inline enums properties with default values as default is not allowed next to $ref
  • 8b072f4: Emit warning if using opendIdConnect http auth scheme
  • 148eee4: Update references to ARM, Add template customization parameters, add migration docs

@azure-tools/typespec-azure-core

Patch Changes

  • @typespec/compiler@0.53.0
  • @typespec/http@0.53.0
  • @typespec/rest@0.53.0

@azure-tools/typespec-azure-resource-manager

Patch Changes

  • ebfe639: Fix Location resource issue, add mechanism for additional path segments
  • 148eee4: Update references to ARM, Add template customization parameters, add migration docs

@azure-tools/typespec-client-generator-core

Minor Changes

  • 3f98132: Add new MultipartFile type
  • c07c189: error out if user tries to encode bytes in multipart input
  • acfb045: Add support for creating an enum from a union declaration
  • 3997779: tcgc will return the raw tsp types to emitters, instead of doing more conversion

Patch Changes

  • 1f1864a: fix incorrect linter error for models not directly used in multipart operations