pub fn get_compatibility_version(config_json: &str) -> Result<String>Expand description
Get the compatibility version
§Arguments
config_json- Configuration JSON string
§Returns
Returns the COMPATIBILITY_VERSION CONFIG_VERSION string on success
§Example
use sz_configtool_lib::versioning;
let config = r#"{"G2_CONFIG": {"CONFIG_BASE_VERSION": {"COMPATIBILITY_VERSION": {"CONFIG_VERSION": "11"}}}}"#;
let version = versioning::get_compatibility_version(config).unwrap();
assert_eq!(version, "11");