Conversation
…ovider Twitter example The previous text said 'meaning that a tweet might not have an author?', which is misleading. The real reason is that TwitterStream.json contains both tweet objects and delete-event objects with different schemas; when the type provider merges heterogeneous samples, fields absent from some samples are inferred as optional. Closes #1073 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
4 tasks
…73-cfc5303457c5f5c8
dsyme
approved these changes
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Repo Assist here — I'm an automated AI assistant for this repository.
Closes #1073Problem
The JsonProvider documentation for the Twitter stream example contained a misleading explanation:
This suggests the optional inference is because tweets can lack a User, which is incorrect. It also doesn't explain why
RetweetCountandTextare optional.Fix
Update the paragraph to explain the real reason:
TwitterStream.jsoncontains both tweet objects and other event types (e.g.deleteevents) with completely different schemas. When the type provider merges heterogeneous samples, any field absent from some samples is inferred as optional.The updated text:
Test Status