Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

The comment in content_media_type_test.dart incorrectly stated "In JSON, the List is UTF-8 decoded to string (not base64)", which contradicted the schema's contentEncoding: base64 declaration and actual server behavior.

Changes:

  • Updated comment to acknowledge the schema has contentEncoding: base64
  • Clarified that this test uses ASCII-compatible bytes for demonstration purposes
  • Explained the test shows bidirectional conversion with simplified data

The schema definition:

imageData:
  type: string
  contentEncoding: base64
  contentMediaType: image/png

The test uses "Hello" (ASCII bytes) as a simple case, not as the general encoding mechanism.


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

Co-authored-by: t-unit <366172+t-unit@users.noreply.github.com>
Copilot AI changed the title [WIP] Update handling of contentEncoding improvements based on feedback Clarify test comment about contentEncoding and bidirectional conversion Jan 15, 2026
Copilot AI requested a review from t-unit January 15, 2026 19:54
@t-unit t-unit marked this pull request as ready for review January 15, 2026 19:55
@t-unit t-unit merged commit e0f245a into contentEncoding Jan 15, 2026
@t-unit t-unit deleted the copilot/sub-pr-69 branch January 15, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants