Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

Updates TypeSpec compiler and related packages to 1.9.0, along with corresponding TCGC and spec package versions.

Dependency Updates

  • TypeSpec core packages: 1.8.0 → 1.9.0
    • @typespec/compiler, @typespec/http, @typespec/openapi, @typespec/json-schema
  • TypeSpec standard libraries: 0.78.0 → 0.79.0
    • @typespec/rest, @typespec/streams, @typespec/versioning, @typespec/xml, @typespec/library-linter
  • TCGC: 0.64.4 → 0.65.0
  • Spec packages: Updated to versions compatible with 1.9.0
    • @azure-tools/azure-http-specs: 0.1.0-alpha.35 → 0.1.0-alpha.37
    • @typespec/http-specs: 0.1.0-alpha.30 → 0.1.0-alpha.32
    • @typespec/spector: 0.1.0-alpha.20 → 0.1.0-alpha.23
  • New peer dependency: @typespec/sse@0.79.0

Type System Changes

Updated InputDateTimeType and InputDurationType to match TCGC 0.65.0's broadened encode property:

// Before: encode: DateTimeKnownEncoding
// After:
encode: DateTimeKnownEncoding | string

Runtime Fix

Fixed deserialization crash for string-based enum arrays. Custom enum types don't expose FrameworkType, so use PropertyInitializationType instead:

// Before: New.Instance(typeof(List<>).MakeGenericType(elementType.FrameworkType), ...)
// After:
New.Instance(propertyType.PropertyInitializationType, selectExpression)
Original prompt

This section details on the original issue you should resolve

<issue_title>Bump C# emitter dependencies</issue_title>
<issue_description>We should bump to the new typespec/compiler version 1.9.0 and all the other new versions for typespec packages.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Feb 10, 2026
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Copilot AI changed the title [WIP] Bump C# emitter dependencies to version 1.9.0 Bump C# emitter dependencies to TypeSpec 1.9.0 Feb 10, 2026
Copilot AI requested a review from JoshLove-msft February 10, 2026 23:45
@JoshLove-msft
Copy link
Contributor

@copilot sync from main

Copy link
Contributor Author

Copilot AI commented Feb 11, 2026

@JoshLove-msft Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub.

You can ask me to try again later by mentioning me in a new comment.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 156f1fbe-a7f3-4258-ab39-3a0992a18b7d

Sorry for the inconvenience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump C# emitter dependencies

2 participants