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

fix: serialize object table cells using the JSON serializer #1256

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

Skaiir
Copy link
Contributor

@Skaiir Skaiir commented Sep 10, 2024

Closes #1139

Decided to simply go for JSON serialization here. It's the most permissive approach and also is the easiest to understand where you went wrong (if at all). This changes how arrays are rendered, but the previous way was simply concatenating the contents without spaces which was definitely not "defined behavior", so we don't need to worry about any backwards compatibility issues.

I've considered circular references, they are not a problem as in any case we do a JSON serialization of the entire data during import, which would crash in case of circular object references. Whether we should have something to handle circular references in source data, debatable, but another issue entirely.

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Sep 10, 2024
@vsgoulart vsgoulart merged commit bd995e1 into main Sep 10, 2024
12 of 13 checks passed
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Sep 10, 2024
@vsgoulart vsgoulart deleted the 1139-validate-table-cell-values branch September 10, 2024 08:24
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