Commit 471ca7e
Bump TCGC to 0.67.1 for http-client-csharp (#10309)
Bump `@azure-tools/typespec-client-generator-core` from 0.66.3 to 0.67.1
and all related dependencies for the http-client-csharp emitter.
### Dependency bumps
- **TCGC**: 0.66.3 → 0.67.1, **Azure Core**: 0.66.0 → 0.67.0
- **@typespec/compiler, http, openapi**: 1.10.0 → 1.11.0
- **@typespec/rest, sse, streams, versioning, xml, json-schema,
library-linter**: 0.80.0 → 0.81.0
- **http-specs, azure-http-specs, spector**: bumped to latest compatible
alphas
- Peer dependency ranges updated accordingly
### Breaking change fixes
- **`utils.ts`** — `__raw.service` renamed to `__raw.services` (now
always `Namespace[]`):
```ts
// before
return Array.isArray(client.__raw.service) &&
client.__raw.service.length > 1;
// after
return client.__raw.services.length > 1;
```
- **`type-converter.ts`** — Guard `sdkType.__raw` before calling
`getAccessOverride()`. Synthetic enums (content-type/accept params)
created by TCGC 0.67.0 have `__raw === undefined`.
### Test updates
- Multi-service tests now use `autoMergeService: true` on `@client`
(required in 0.67.0 for sub-client merging across services)
- Removed `@useDependency` from multi-service tests (no longer used for
API version declaration per <a
href="https://github.com/Azure/typespec-azure/blob/main/packages/typespec-client-generator-core/CHANGELOG.md#breaking-changes">migration
guide</a>)
### Regenerated test libraries
Regenerated all Spector specs, Sample-TypeSpec (Local), and launch
settings via `Generate.ps1`. No changes to `Generate.ps1` or
`SampleService/package.json`. Expected code model diffs: doc string
updates removing `@operationGroup` references, fully-qualified
`crossLanguageDefinitionId` paths, synthetic enums for
content-type/accept parameters, improved constant naming.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Co-authored-by: Jorge Rangel <jorgerangel@microsoft.com>
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>1 parent 76466bf commit 471ca7e
16 files changed
Lines changed: 782 additions & 692 deletions
File tree
- packages/http-client-csharp
- emitter
- src/lib
- test/Unit
- generator/TestProjects
- Local/Sample-TypeSpec
- src/Generated
- Spector/http
- client/structure/default
- documentation
- src/Generated
- parameters/spread
- payload
- multipart
- pageable
- type/union
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
333 | 335 | | |
334 | 336 | | |
335 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | | - | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| |||
426 | 427 | | |
427 | 428 | | |
428 | 429 | | |
| 430 | + | |
429 | 431 | | |
430 | | - | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
293 | 294 | | |
294 | | - | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
Lines changed: 8 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
1056 | | - | |
1057 | 1056 | | |
1058 | | - | |
1059 | | - | |
1060 | 1057 | | |
1061 | 1058 | | |
1062 | | - | |
| 1059 | + | |
1063 | 1060 | | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
| 1061 | + | |
1067 | 1062 | | |
1068 | 1063 | | |
1069 | 1064 | | |
| |||
1075 | 1070 | | |
1076 | 1071 | | |
1077 | 1072 | | |
1078 | | - | |
1079 | 1073 | | |
1080 | | - | |
1081 | | - | |
1082 | 1074 | | |
1083 | 1075 | | |
1084 | | - | |
| 1076 | + | |
1085 | 1077 | | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
| 1078 | + | |
1089 | 1079 | | |
1090 | 1080 | | |
1091 | 1081 | | |
1092 | 1082 | | |
1093 | | - | |
1094 | 1083 | | |
1095 | | - | |
1096 | | - | |
1097 | 1084 | | |
1098 | | - | |
| 1085 | + | |
1099 | 1086 | | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
| 1087 | + | |
1103 | 1088 | | |
1104 | 1089 | | |
1105 | 1090 | | |
1106 | 1091 | | |
1107 | | - | |
1108 | 1092 | | |
1109 | | - | |
1110 | | - | |
1111 | 1093 | | |
1112 | | - | |
| 1094 | + | |
1113 | 1095 | | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
| 1096 | + | |
1117 | 1097 | | |
1118 | 1098 | | |
1119 | 1099 | | |
| |||
0 commit comments