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 invalid value attachments #7356

Merged
merged 3 commits into from
Aug 9, 2024
Merged

Conversation

charlag
Copy link
Contributor

@charlag charlag commented Aug 8, 2024

Close #7355

charlag added 3 commits August 8, 2024 16:30
1. Rust models were out of sync with ts models.
2. JsonSerializer was not handling array of ListElementReference's
correctly

#7355
@charlag charlag force-pushed the fix-invalid-value-attachments-7355 branch from a579e59 to 08d8363 Compare August 8, 2024 14:30
}
(
AssociationType::ListElementAssociation,
Cardinality::One,
Cardinality::One | Cardinality::ZeroOrOne,
Copy link
Contributor

Choose a reason for hiding this comment

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

For ListElementAssociation, ZeroOrOne is not Option?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what do you mean? We already handle all ZeroOrOne + Null cases together?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ok I got confused. There are too many conditions.

@charlag charlag merged commit 08d8363 into master Aug 9, 2024
3 checks passed
@charlag charlag deleted the fix-invalid-value-attachments-7355 branch August 9, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants