Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Fix a json serializer bug.#6722

Merged
tracyboehrer merged 17 commits into
microsoft:mainfrom
fangyangci:main
Jan 8, 2024
Merged

Fix a json serializer bug.#6722
tracyboehrer merged 17 commits into
microsoft:mainfrom
fangyangci:main

Conversation

@fangyangci
Copy link
Copy Markdown
Contributor

@fangyangci fangyangci commented Dec 31, 2023

Fixes #6723

Description

The streamingSession is using System.Text.Json to Deserialize string.
But, in libraries/Microsoft.Bot.Streaming/Payloads/Models/StreamDescription.cs (line 28), it using JsonProperty.
So, all the StreamContent type property will be lost.

Specific Changes

Using Newtonsoft.Json Instead of System.Text.Json.

Testing

Test locally, with attachment transfer to bot by websocket.

@fangyangci fangyangci requested a review from a team as a code owner December 31, 2023 15:01
This was referenced May 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StreamingSession json serializer bug (Lost property ContentType).

2 participants