aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/schema')
-rw-r--r--src/api/schema/plugins.rs2
-rw-r--r--src/api/schema/tests.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/api/schema/plugins.rs b/src/api/schema/plugins.rs
index 907f243b..c809be58 100644
--- a/src/api/schema/plugins.rs
+++ b/src/api/schema/plugins.rs
@@ -37,6 +37,8 @@ pub struct InstalledPluginInfo {
pub plugin_id: String,
pub name: String,
pub version: String,
+ #[serde(default)]
+ pub min_herdr_version: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
pub manifest_path: String,
diff --git a/src/api/schema/tests.rs b/src/api/schema/tests.rs
index 05ac9291..3a3684e5 100644
--- a/src/api/schema/tests.rs
+++ b/src/api/schema/tests.rs
@@ -566,6 +566,7 @@ fn plugin_link_list_unlink_round_trip() {
plugin_id: "example.worktree-bootstrap".into(),
name: "Worktree Bootstrap".into(),
version: "0.1.0".into(),
+ min_herdr_version: crate::build_info::BASE_VERSION.into(),
description: Some("Prepare new worktrees".into()),
manifest_path: "/plugins/worktree-bootstrap/herdr-plugin.toml".into(),
plugin_root: "/plugins/worktree-bootstrap".into(),