pub fn verify_compatibility_version(
config_json: &str,
expected_version: &str,
) -> Result<(String, bool)>Expand description
Verify the compatibility version matches expected value
§Arguments
config_json- Configuration JSON stringexpected_version- Expected version string
§Returns
Returns (current_version, matches) tuple on success
§Example
use sz_configtool_lib::versioning;
let config = r#"{"G2_CONFIG": {"CONFIG_BASE_VERSION": {"COMPATIBILITY_VERSION": {"CONFIG_VERSION": "11"}}}}"#;
let (current, matches) = versioning::verify_compatibility_version(config, "11").unwrap();
assert!(matches);