Return memory patch candidates from propose
This commit is contained in:
parent
d1d7291a82
commit
09238eb623
8 changed files with 125 additions and 8 deletions
|
|
@ -2821,6 +2821,7 @@ mod tests {
|
|||
}),
|
||||
..Default::default()
|
||||
},
|
||||
memory_patch_candidates: Vec::new(),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -5013,6 +5013,9 @@ pub struct ThreadEpiphanyProposeParams {
|
|||
pub struct ThreadEpiphanyProposeResponse {
|
||||
pub expected_revision: u64,
|
||||
pub patch: ThreadEpiphanyUpdatePatch,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<CoreEpiphanyMemoryPatchCandidate>")]
|
||||
pub memory_patch_candidates: Vec<CoreEpiphanyMemoryPatchCandidate>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
|
|
|
|||
Reference in a new issue