Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native serialization of JSON-like slices & maps #13

Merged
merged 8 commits into from
Jun 28, 2024

Conversation

chriso
Copy link
Contributor

@chriso chriso commented Jun 28, 2024

This PR updates the serialization layer to automatically serialize slices and maps that contain primitive values (booleans, integers, floats, strings), or contain slices and maps of primitive values (recursively).

We're using structpb.Value to hold the data, so it's shown correctly in the CLI and also works as expected when interacting with functions from the Python SDK.

The equivalent change on the Python side was dispatchrun/dispatch-py#179.

@chriso chriso self-assigned this Jun 28, 2024
@chriso chriso changed the title Support native serialization of primitive slices Native serialization of JSON-like slices & maps Jun 28, 2024
Copy link
Contributor

@achille-roussel achille-roussel left a comment

Choose a reason for hiding this comment

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

:shipit:

@chriso chriso merged commit 01636bf into main Jun 28, 2024
3 checks passed
@chriso chriso deleted the serialize-primitive-slices branch June 28, 2024 21:56
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.

3 participants