pub fn update_compatibility_version(
config_json: &str,
new_version: &str,
) -> Result<String>Expand description
Update the compatibility version
§Arguments
config_json- Configuration JSON stringnew_version- New version string
§Returns
Returns modified configuration JSON on success
§Example
use sz_configtool_lib::versioning;
let config = r#"{"G2_CONFIG": {"CONFIG_BASE_VERSION": {"COMPATIBILITY_VERSION": {"CONFIG_VERSION": "10"}}}}"#;
let modified = versioning::update_compatibility_version(config, "11").unwrap();