forked from 1b-agent/opencadstudio-upstream
fix(plugins): gate on_load behind API v5
BREAKING CHANGE: plugins using on_load must target API v5 and declare api_version = 5. Refs #901
This commit is contained in:
1 parent
c527466791
commit
2842f6dc58
9 files changed
+43
-30
No files matched your search
@@ -147,7 +147,7 @@ mod tests {
|
||||
value["ocs_plugin_api_version"].as_str(),
|
||||
Some(env!("CARGO_PKG_VERSION"))
|
||||
);
|
||||
assert_eq!(value["api_version"].as_i64(), Some(4));
|
||||
assert_eq!(value["api_version"].as_i64(), Some(5));
|
||||
assert_eq!(value["api_version_min_supported"].as_i64(), Some(2));
|
||||
|
||||
// acadrust_version should have a patch component (e.g. "0.4.0").
|
||||
|
||||
Reference in new issue
Block a user