option non nullable

This commit is contained in:
kevin zhao
2025-11-20 13:56:58 -05:00
parent 12ae89d201
commit e21e79cfc0

View File

@@ -52,6 +52,7 @@ pub struct ExecApprovalRequestEvent {
pub risk: Option<SandboxCommandAssessment>,
/// Prefix rule that can be added to the user's execpolicy to allow future runs.
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional, type = "Array<string>")]
pub allow_prefix: Option<Vec<String>>,
pub parsed_cmd: Vec<ParsedCommand>,
}