May 2023
Release Notes May 2023 (2023-05-10)
Section titled “Release Notes May 2023 (2023-05-10)”See TypeSpec Core release notes
New Features
Section titled “New Features”@azure-tools/typespec-autorest features
Section titled “@azure-tools/typespec-autorest features”- Added new option
arm-types-dirused to specify the directory for arm common types - Respect
clientprojection target to resolveoperationIdandx-ms-client-name
@azure-tools/typespec-azure-core features
Section titled “@azure-tools/typespec-azure-core features”- Added new
operation-missing-api-versionlinting rule for operations in versioned namespaces. - Add linter rules for operation names.
- Add warning if operation has multiple non-error status codes with different schemas.
- Add linter warning if property name is the same as its enclosing model in a case-insensitive manner.
- Add warning if
OpenAPI.operationIddecorator is used in Azure specs, as it should not be required. - Add linter warning if orderBy is used as a parameter to list operations.
- Add linter warning if request body is a raw array type.
- Added new
byoslinting rule, warning against storage management - Added linter rule recommending to use
csvfor query and header collection format. - [Linter] Added new rule against using fixed enum as discriminator
- Added new linting rule discouraging use of nullable properties
- Added new
no-objectlinting rule warning against usage ofobjecttype - Added linting rule discouraging use of
offsetDateTime - Add trait properties to parameters and response of
RpcOperation
@azure-tools/typespec-azure-resource-manager features
Section titled “@azure-tools/typespec-azure-resource-manager features”- Added templates for checkNameAvailability
- Added Support for the new autorest
arm-types-diroption
@azure-tools/typespec-client-generator-core features
Section titled “@azure-tools/typespec-client-generator-core features”- Added getSdkModelPropertyType
- Added enum converter
- Added duration to client format
- Added lint rule for @friendlyName.
- Added getSdkConstant
- Compete transitive closure of @internal methods and models
- generate nullable enums
- refine types in union and enum
- remove support for zonedDateTime
@azure-tools/typespec-azure-core bug fixes
Section titled “@azure-tools/typespec-azure-core bug fixes”- Fix issue with LongRunningResourceCreateWithServiceProvidedName.
- Update SkipQueryParameter default to 0.
- FIx:
byosrule doesn’t report twice onop isreferencing a template instance
@azure-tools/typespec-azure-resource-manager fixes
Section titled “@azure-tools/typespec-azure-resource-manager fixes”- Fix issue where a decorator renames operations in a way that is contrary to guidelines.
- Fix issue with overriding interface lifecycle operations