File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
api/oas_generator/rust_oas_generator/templates/models/block
crates/algod_client/src/models Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,9 @@ pub struct UnauthenticatedBundle {
112112 pub step: u64,
113113 #[serde(rename = "prop")]
114114 pub proposal: ProposalValue,
115- #[serde(rename = "vote")]
115+ #[serde(rename = "vote", default, skip_serializing_if = "Vec::is_empty" )]
116116 pub votes: Vec<VoteAuthenticator >,
117- #[serde(rename = "eqv")]
117+ #[serde(rename = "eqv", default, skip_serializing_if = "Vec::is_empty" )]
118118 pub equivocation_votes: Vec<EquivocationVoteAuthenticator >,
119119}
120120
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ pub struct UnauthenticatedCredential {
6767pub struct ProposalValue {
6868 #[ serde( rename = "oper" , default ) ]
6969 pub original_period : u64 ,
70- #[ serde( rename = "oprop" , default ) ]
70+ #[ serde( rename = "oprop" ) ]
7171 pub original_proposer : Address ,
7272 /// BlockDigest = proposal.Block.Digest()
7373 #[ serde( rename = "dig" ) ]
@@ -112,9 +112,9 @@ pub struct UnauthenticatedBundle {
112112 pub step : u64 ,
113113 #[ serde( rename = "prop" ) ]
114114 pub proposal : ProposalValue ,
115- #[ serde( rename = "vote" ) ]
115+ #[ serde( rename = "vote" , default , skip_serializing_if = "Vec::is_empty" ) ]
116116 pub votes : Vec < VoteAuthenticator > ,
117- #[ serde( rename = "eqv" ) ]
117+ #[ serde( rename = "eqv" , default , skip_serializing_if = "Vec::is_empty" ) ]
118118 pub equivocation_votes : Vec < EquivocationVoteAuthenticator > ,
119119}
120120
You can’t perform that action at this time.
0 commit comments