[http-client-python] upgrade to tcgc 0.47.4 (#4955)
there is no generated code diff: https://github.com/Azure/autorest.python/pull/2900 --------- Co-authored-by: iscai-msft <43154838+iscai-msft@users.noreply.github.com>
This commit is contained in:
Родитель
9c51f13aea
Коммит
a2f38368d9
|
@ -1,5 +1,11 @@
|
|||
# Change Log - @typespec/http-client-python
|
||||
|
||||
## 0.3.5
|
||||
|
||||
### Bump dependencies
|
||||
|
||||
- Bump TCGC to 0.47.4
|
||||
|
||||
## 0.3.4
|
||||
|
||||
### Bug Fixes
|
||||
|
|
|
@ -12,6 +12,7 @@ import {
|
|||
SdkServiceOperation,
|
||||
UsageFlags,
|
||||
getCrossLanguagePackageId,
|
||||
isAzureCoreModel,
|
||||
} from "@azure-tools/typespec-client-generator-core";
|
||||
import { ignoreDiagnostics } from "@typespec/compiler";
|
||||
import {
|
||||
|
@ -244,6 +245,7 @@ export function emitCodeModel<TServiceOperation extends SdkServiceOperation>(
|
|||
}
|
||||
// loop through models and enums since there may be some orphaned models needs to be generated
|
||||
for (const model of sdkPackage.models) {
|
||||
// filter out spread models
|
||||
if (
|
||||
model.name === "" ||
|
||||
((model.usage & UsageFlags.Spread) > 0 &&
|
||||
|
@ -252,14 +254,25 @@ export function emitCodeModel<TServiceOperation extends SdkServiceOperation>(
|
|||
) {
|
||||
continue;
|
||||
}
|
||||
if (!disableGenerationMap.has(model)) {
|
||||
getType(sdkContext, model);
|
||||
// filter out specific models not used in python, e.g., pageable models
|
||||
if (disableGenerationMap.has(model)) {
|
||||
continue;
|
||||
}
|
||||
// filter out core models
|
||||
if (isAzureCoreModel(model)) {
|
||||
continue;
|
||||
}
|
||||
getType(sdkContext, model);
|
||||
}
|
||||
for (const sdkEnum of sdkPackage.enums) {
|
||||
// filter out api version enum since python do not generate it
|
||||
if (sdkEnum.usage === UsageFlags.ApiVersionEnum) {
|
||||
continue;
|
||||
}
|
||||
// filter out core enums
|
||||
if (isAzureCoreModel(sdkEnum)) {
|
||||
continue;
|
||||
}
|
||||
getType(sdkContext, sdkEnum);
|
||||
}
|
||||
codeModel["types"] = [
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"@azure-tools/typespec-azure-core": "~0.47.0",
|
||||
"@azure-tools/typespec-azure-resource-manager": "~0.47.0",
|
||||
"@azure-tools/typespec-azure-rulesets": "~0.47.0",
|
||||
"@azure-tools/typespec-client-generator-core": "~0.47.1",
|
||||
"@azure-tools/typespec-client-generator-core": "~0.47.4",
|
||||
"@types/js-yaml": "~4.0.5",
|
||||
"@types/node": "~22.5.4",
|
||||
"@types/semver": "7.5.8",
|
||||
|
@ -45,7 +45,7 @@
|
|||
"@azure-tools/typespec-azure-core": ">=0.47.0 <1.0.0",
|
||||
"@azure-tools/typespec-azure-resource-manager": ">=0.47.0 <1.0.0",
|
||||
"@azure-tools/typespec-azure-rulesets": ">=0.47.0 <3.0.0",
|
||||
"@azure-tools/typespec-client-generator-core": ">=0.47.1 <1.0.0",
|
||||
"@azure-tools/typespec-client-generator-core": ">=0.47.4 <1.0.0",
|
||||
"@typespec/compiler": ">=0.61.0 <1.0.0",
|
||||
"@typespec/http": ">=0.61.0 <1.0.0",
|
||||
"@typespec/openapi": ">=0.61.0 <1.0.0",
|
||||
|
@ -237,9 +237,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@azure-tools/typespec-client-generator-core": {
|
||||
"version": "0.47.1",
|
||||
"resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.47.1.tgz",
|
||||
"integrity": "sha512-kgjGnnOaHewa8PjmZcEY4+UrEMBrXhOpMxDuhlMnFfOvCo3uZc3FVryoNrDHkZ8weCn6sjxo8zHcj1lpCg4/uw==",
|
||||
"version": "0.47.4",
|
||||
"resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.47.4.tgz",
|
||||
"integrity": "sha512-oXA8rHzBsoofzSXvGLGohj6VDYegtgAfGMWo2o4ubew1bS4cvl3CYl9DJ54blqafxtJXnNh4SdjadeHTsCz2mw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"change-case": "~5.4.4",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typespec/http-client-python",
|
||||
"version": "0.3.4",
|
||||
"version": "0.3.5",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "TypeSpec emitter for Python SDKs",
|
||||
"homepage": "https://typespec.io",
|
||||
|
@ -54,7 +54,7 @@
|
|||
"@azure-tools/typespec-azure-core": ">=0.47.0 <1.0.0",
|
||||
"@azure-tools/typespec-azure-resource-manager": ">=0.47.0 <1.0.0",
|
||||
"@azure-tools/typespec-autorest": ">=0.47.0 <1.0.0",
|
||||
"@azure-tools/typespec-client-generator-core": ">=0.47.1 <1.0.0",
|
||||
"@azure-tools/typespec-client-generator-core": ">=0.47.4 <1.0.0",
|
||||
"@azure-tools/typespec-azure-rulesets": ">=0.47.0 <3.0.0",
|
||||
"@typespec/compiler": ">=0.61.0 <1.0.0",
|
||||
"@typespec/http": ">=0.61.0 <1.0.0",
|
||||
|
@ -80,7 +80,7 @@
|
|||
"typescript": "~5.6.2",
|
||||
"typescript-eslint": "^8.5.0",
|
||||
"@azure-tools/typespec-azure-core": "~0.47.0",
|
||||
"@azure-tools/typespec-client-generator-core": "~0.47.1",
|
||||
"@azure-tools/typespec-client-generator-core": "~0.47.4",
|
||||
"@typespec/compiler": "~0.61.0",
|
||||
"@typespec/http": "~0.61.0",
|
||||
"@typespec/rest": "~0.61.0",
|
||||
|
|
Загрузка…
Ссылка в новой задаче