Skip to content

Commit

Permalink
[tcgc] remove filtering core model flag (#1806)
Browse files Browse the repository at this point in the history
fix: #1803

---------

Co-authored-by: iscai-msft <isabellavcai@gmail.com>
  • Loading branch information
tadelesh and iscai-msft authored Nov 5, 2024
1 parent 5c9a6d0 commit 6b7cd4d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .chronus/changes/remove_flag-2024-10-5-18-43-3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-client-generator-core"
---

remove filtering core model flag
1 change: 0 additions & 1 deletion packages/typespec-client-generator-core/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export interface SdkContext<
export interface SdkEmitterOptions {
"generate-protocol-methods"?: boolean;
"generate-convenience-methods"?: boolean;
"filter-out-core-models"?: boolean;
"package-name"?: string;
"flatten-union-as-enum"?: boolean;
"api-version"?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ describe("typespec-client-generator-core: long running operation metadata", () =
runner = await createSdkTestRunner({
librariesToAdd: [AzureCoreTestLibrary],
autoUsings: ["Azure.Core", "Azure.Core.Traits"],
"filter-out-core-models": false, // need to check some Azure.Core models
});
const baseCompile = runner.compile;
runner.compileWithVersionedService = async function (code) {
Expand Down Expand Up @@ -379,7 +378,6 @@ describe("typespec-client-generator-core: long running operation metadata", () =
runner = await createSdkTestRunner({
librariesToAdd: [AzureCoreTestLibrary, AzureResourceManagerTestLibrary, OpenAPITestLibrary],
autoUsings: ["Azure.Core", "Azure.Core.Traits", "Azure.ResourceManager"],
"filter-out-core-models": false, // need to check some Azure.Core models
});
const baseCompile = runner.compile;
runner.compileWithVersionedService = async function (code) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ describe("typespec-client-generator-core: array types", () => {
runner = await createSdkTestRunner({
librariesToAdd: [AzureCoreTestLibrary],
autoUsings: ["Azure.Core"],
"filter-out-core-models": false,
emitterName: "@azure-tools/typespec-java",
});
await runner.compileWithBuiltInAzureCoreService(`
Expand All @@ -79,7 +78,6 @@ describe("typespec-client-generator-core: array types", () => {
runner = await createSdkTestRunner({
librariesToAdd: [AzureCoreTestLibrary],
autoUsings: ["Azure.Core"],
"filter-out-core-models": false,
emitterName: "@azure-tools/typespec-java",
});
await runner.compileWithBuiltInAzureCoreService(`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ describe("typespec-client-generator-core: built-in types", () => {
runner = await createSdkTestRunner({
librariesToAdd: [AzureCoreTestLibrary],
autoUsings: ["Azure.Core"],
"filter-out-core-models": false,
emitterName: "@azure-tools/typespec-java",
});
await runner.compileWithBuiltInAzureCoreService(`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,6 @@ describe("typespec-client-generator-core: model types", () => {
runner = await createSdkTestRunner({
librariesToAdd: [AzureCoreTestLibrary],
autoUsings: ["Azure.Core"],
"filter-out-core-models": false,
emitterName: "@azure-tools/typespec-java",
});
await runner.compileWithBuiltInAzureCoreService(`
Expand Down Expand Up @@ -784,7 +783,6 @@ describe("typespec-client-generator-core: model types", () => {
runner = await createSdkTestRunner({
librariesToAdd: [AzureCoreTestLibrary],
autoUsings: ["Azure.Core"],
"filter-out-core-models": false,
emitterName: "@azure-tools/typespec-java",
});
await runner.compileWithBuiltInAzureCoreService(`
Expand Down

0 comments on commit 6b7cd4d

Please sign in to comment.