Skip to content

Commit

Permalink
upgrade tcgc to v0.45.4 (#2782)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-jiaodi authored Aug 29, 2024
1 parent cf422f1 commit 8f46df8
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 22 deletions.
20 changes: 10 additions & 10 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/typespec-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@azure-tools/typespec-autorest": ">=0.45.0 <1.0.0",
"@typespec/openapi3": ">=0.59.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.45.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.45.1 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.45.4 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.45.0 <1.0.0",
"@typespec/compiler": ">=0.59.0 <1.0.0",
"@typespec/http": ">=0.59.0 <1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export {
SchemaGroup,
SchemaContentTypeValues,
SchemaVersion,
ServiceApiVersions,
SchemaProperties,
SchemaFormat,
Schema,
ContentTypeEnum,
ServiceApiVersions,
SchemaOperationsListSchemaGroupsOptionalParams,
SchemaOperationsGetSchemaByIdOptionalParams,
SchemaOperationsListSchemaVersionsOptionalParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ export {
SchemaGroup,
SchemaContentTypeValues,
SchemaVersion,
ServiceApiVersions,
SchemaProperties,
SchemaFormat,
Schema,
ContentTypeEnum,
ServiceApiVersions,
} from "./models.js";
export {
SchemaOperationsListSchemaGroupsOptionalParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export interface SchemaVersion {
readonly schemaVersion: number;
}

/** Represents the Schema Registry API version to use for requests. */
export type ServiceApiVersions = "2021-10" | "2022-10" | "2023-07-01";

/** Meta properties of a schema. */
export interface SchemaProperties {
/** References a specific schema in the registry namespace. */
Expand Down Expand Up @@ -70,8 +73,6 @@ export type ContentTypeEnum =
| "application/json; serialization=Avro"
| "application/json; serialization=json"
| "text/vnd.ms.protobuf";
/** Represents the Schema Registry API version to use for requests. */
export type ServiceApiVersions = "2021-10" | "2022-10" | "2023-07-01";

/** Paged collection of SchemaGroup items */
export interface _PagedSchemaGroup {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export {
CreateWidget,
UpdateWidget,
AnalyzeResult,
NonReferencedModel,
Versions,
NonReferencedModel,
WidgetsListWidgetsOptionalParams,
WidgetsListWidgetsPagesOptionalParams,
WidgetsQueryWidgetsPagesOptionalParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export {
CreateWidget,
UpdateWidget,
AnalyzeResult,
NonReferencedModel,
Versions,
NonReferencedModel,
} from "./models.js";
export {
WidgetsListWidgetsOptionalParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ export interface AnalyzeResult {
summary: string;
}

/** The Contoso Widget Manager service version. */
export type Versions = "1.0.0";

export interface NonReferencedModel {
/** The weight of the widget. This is an int32, but must be greater than zero. */
prop1: number;
Expand All @@ -74,6 +77,3 @@ export function nonReferencedModelSerializer(
prop2: item["prop2"],
};
}

/** The Contoso Widget Manager service version. */
export type Versions = "1.0.0";
4 changes: 2 additions & 2 deletions packages/typespec-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@azure-tools/typespec-autorest": ">=0.45.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.45.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.45.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.45.1 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.45.4 <1.0.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.6.0",
"@azure/core-lro": "^3.0.0",
Expand Down Expand Up @@ -111,7 +111,7 @@
},
"peerDependencies": {
"@azure-tools/typespec-azure-core": ">=0.45.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.45.1 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.45.4 <1.0.0",
"@typespec/compiler": ">=0.59.0 <1.0.0",
"@typespec/http": ">=0.59.0 <1.0.0",
"@typespec/rest": ">=0.59.0 <1.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/typespec-ts/src/modular/buildCodeModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,7 @@ function getName(program: Program, type: Model): string {
if (
type.templateMapper &&
type.templateMapper.args &&
type.name !== "" &&
type.templateMapper.args.length > 0
) {
return (
Expand Down

0 comments on commit 8f46df8

Please sign in to comment.