message: Adds schema release
diff: @@ -184,12 +184,17 @@ pub extern fn vcx_schema_release(schema_handle: u32) -> u32 {
  let source_id = schema::get_source_id(schema_handle).unwrap_or_default();
  match schema::release(schema_handle) {
  - Ok(x) => trace!("vcx_schema_release(schema_handle: {}, rc: {}), source_id: {}",
  - schema_handle, error_string(0), source_id),
  - Err(e) => warn!("vcx_schema_release(schema_handle: {}, rc: {}), source_id: {}",
  - schema_handle, error_string(e.to_error_code()), source_id),
  - };
  + Ok(_) => {
  + trace!("vcx_schema_release(schema_handle: {}, rc: {}), source_id: {}",
  + schema_handle, error_string(0), source_id);
  error::SUCCESS.code_num
  + },
  + Err(e) => {
  + warn!("vcx_schema_release(schema_handle: {}, rc: {}), source_id: {}",
  + schema_handle, error_string(e.to_error_code()), source_id);
  + e.to_error_code()
  + }
  + }
  }
  /// Retrieves schema's id
  @@ -521,6 +526,7 @@ mod tests {
  init!("true");
  let did = settings::get_config_value(settings::CONFIG_INSTITUTION_DID).unwrap();
  let handle = schema::create_new_schema("testid", did, "name".to_string(),"1.0".to_string(),"[\"name\":\"male\"]".to_string()).unwrap();
  -
  + let unknown_handle = handle + 1;
  + assert_eq!(vcx_schema_release(unknown_handle), error::INVALID_SCHEMA_HANDLE.code_num);
  }
  }
  