-
Notifications
You must be signed in to change notification settings - Fork 2
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: flatten "base" in AssignmentEvent #46
Conversation
092a5b1
to
606b372
Compare
@@ -38,6 +38,7 @@ pub struct AssignmentEventBase { | |||
#[derive(Debug, Clone, Serialize)] | |||
#[serde(rename_all = "camelCase")] | |||
pub struct AssignmentEvent { | |||
#[serde(flatten)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"flatten" unpacks a nested structure into parent when serializing
) | ||
assert result == "partial-example" | ||
|
||
assert event["allocation"] == "partial-example" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this demonstrate that nested elements, like base
are no longer present?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. the test fails without the flatten tag
No description provided.