feat: allow arrays
Some checks reported errors
continuous-integration/drone/push Build encountered an error

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-05-27 22:59:11 +02:00
parent 67af5e7aa6
commit 0ebe88a470
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -98,6 +98,7 @@ impl From<CuddlePlanVariables> for Vec<CuddleVariable> {
pub enum CuddlePlanVar {
Str(String),
Nested(HashMap<String, CuddlePlanVar>),
Array(Vec<CuddlePlanVar>),
}
#[derive(Clone, Debug, PartialEq)]
@ -120,6 +121,7 @@ impl From<HashMap<String, CuddlePlanVar>> for CuddleVariables {
variables.append(&mut combined_variables);
}
CuddlePlanVar::Array(_) => {}
}
}