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

Serialize Expressions to Objects #2436

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

ada-x64
Copy link
Contributor

@ada-x64 ada-x64 commented Nov 16, 2023

This PR changes expression serialization so that expressions will always serialize to objects while allowing users to import array-based expressions.

Copy link
Member

@texodus texodus left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Looks good!

#[serde(untagged)]
pub enum Expressions {
pub enum ExpressionsDeserde {
Copy link
Member

Choose a reason for hiding this comment

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

What makes this type unique that it requires the qualifier Deserde in the name (as opposed to the other components of ViewerConfig)? There is no other Expressions type, so the fact that it only supports deserialization doesn't disambiguate it.

@texodus texodus merged commit 0b9a967 into finos:master Nov 17, 2023
13 checks passed
@texodus texodus added the bug Concrete, reproducible bugs label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants