Skip to content

Sync Streams: Allow array and object parameters#350

Merged
simolus3 merged 2 commits into
mainfrom
streams-array-object-parameters
May 15, 2026
Merged

Sync Streams: Allow array and object parameters#350
simolus3 merged 2 commits into
mainfrom
streams-array-object-parameters

Conversation

@simolus3

Copy link
Copy Markdown
Contributor

When subscribing to a Sync Stream with an array or object parameter, the mapping in TypedRow attempting to map that value to Kotlin would fail because it only supports primitive values.

Ideally, we should have used Map<String, JsonParam> to represent parameters on stream. Doing that would be a breaking change now though, so we have to keep mapping values to Kotlin. So, this adds support for object and arrays to TypedRow.

Closes #349.

@stevensJourney stevensJourney left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy with these changes :)

@simolus3 simolus3 merged commit 2c9d621 into main May 15, 2026
27 of 28 checks passed
@simolus3 simolus3 deleted the streams-array-object-parameters branch May 15, 2026 12:19
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.

[Bug / Fatal Crasher] 'JsonArray is not a JsonPrimitive'

2 participants