Update code for validator 0.19.0

This commit is contained in:
Zhaofeng Li 2024-11-08 08:26:29 -07:00
parent 40429b7ed4
commit 4dc8155712
2 changed files with 4 additions and 4 deletions

View file

@ -87,14 +87,14 @@ pub struct Key {
#[serde(flatten)]
source: KeySource,
#[validate(custom = "validate_dest_dir")]
#[validate(custom(function = "validate_dest_dir"))]
#[serde(rename = "destDir")]
dest_dir: PathBuf,
#[validate(custom = "validate_unix_name")]
#[validate(custom(function = "validate_unix_name"))]
user: String,
#[validate(custom = "validate_unix_name")]
#[validate(custom(function = "validate_unix_name"))]
group: String,
permissions: String,

View file

@ -81,7 +81,7 @@ pub struct NodeConfig {
#[serde(rename = "sshOptions")]
extra_ssh_options: Vec<String>,
#[validate(custom = "validate_keys")]
#[validate(custom(function = "validate_keys"))]
keys: HashMap<String, Key>,
}