Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into change-workspace-ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Radek authored and Christopher Radek committed Mar 6, 2025
2 parents 77e30a3 + 8d15659 commit 0eadeef
Show file tree
Hide file tree
Showing 78 changed files with 856 additions and 3,618 deletions.
7 changes: 7 additions & 0 deletions .chronus/changes/add_page_items_segments-2025-2-4-15-27-53.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@azure-tools/typespec-client-generator-core"
---

Add `pageItemsSegments` for `SdkPagingServiceMetadata` to indicate how to get page items from response.
7 changes: 7 additions & 0 deletions .chronus/changes/add_page_items_segments-2025-2-4-15-30-24.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-client-generator-core"
---

Keep empty for `serializedName` if the body parmeter is not explicitly defined.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: fix
packages:
- "@azure-tools/typespec-autorest"
- "@azure-tools/typespec-azure-resource-manager"
---

Fix using `@identifiers` on array of model with id not respected
7 changes: 7 additions & 0 deletions .chronus/changes/fix_bugs-2025-1-26-14-49-56.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-client-generator-core"
---

Consider extensible enum when doing example value mapping.
7 changes: 7 additions & 0 deletions .chronus/changes/fix_bugs-2025-1-26-15-49-39.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-client-generator-core"
---

Do not consider template type when calculating discriminator and orphan types.
7 changes: 7 additions & 0 deletions .chronus/changes/refine_content_type-2025-1-28-15-46-10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: internal
packages:
- "@azure-tools/typespec-client-generator-core"
---

refine content type related logic
7 changes: 7 additions & 0 deletions .chronus/changes/stream_mapping-2025-1-24-18-38-23.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@azure-tools/typespec-client-generator-core"
---

Map all streaming request and response type to bytes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-client-generator-core"
---

move from `isApiVersionParam` -> SdkApiVersionType
7 changes: 7 additions & 0 deletions .chronus/changes/tcgc-migrateToMutator-2025-2-4-12-45-51.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@azure-tools/typespec-client-generator-core"
---

Move from projections to mutators
2 changes: 1 addition & 1 deletion core
Submodule core updated 124 files
2 changes: 1 addition & 1 deletion packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"devDependencies": {
"@typespec/compiler": "workspace:^",
"dotenv": "~16.4.7",
"dotenv": "^16.4.7",
"typescript": "~5.8.2"
}
}
269 changes: 0 additions & 269 deletions packages/typespec-autorest-canonical/test/options.test.ts

This file was deleted.

9 changes: 6 additions & 3 deletions packages/typespec-autorest-canonical/test/test-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export async function createAutorestCanonicalTestRunner(
"Azure.ClientGenerator.Core",
],
compilerOptions: {
emitters: { [AutorestCanonicalTestLibrary.name]: { ...emitterOptions } },
emit: ["@azure-tools/typespec-autorest-canonical"],
options: { [AutorestCanonicalTestLibrary.name]: { ...emitterOptions } },
miscOptions: { "disable-linter": true },
},
});
Expand Down Expand Up @@ -77,7 +78,8 @@ export async function openApiFor(code: string, options: AutorestCanonicalEmitter
const runner = await createAutorestCanonicalTestRunner();
const diagnostics = await runner.diagnose(code, {
noEmit: false,
emitters: {
emit: ["@azure-tools/typespec-autorest-canonical"],
options: {
[AutorestCanonicalTestLibrary.name]: {
...options,
"emitter-output-dir": resolveVirtualPath("tsp-output"),
Expand All @@ -101,7 +103,8 @@ export async function diagnoseOpenApiFor(
) {
const runner = await createAutorestCanonicalTestRunner();
return await runner.diagnose(code, {
emitters: {
emit: ["@azure-tools/typespec-autorest-canonical"],
options: {
"@azure-tools/typespec-autorest-canonical": options as any,
},
});
Expand Down
Loading

0 comments on commit 0eadeef

Please sign in to comment.