From 1af5255501b789c82e8e9f20eb319e36e22726de Mon Sep 17 00:00:00 2001 From: idiom Date: Mon, 15 Aug 2022 15:55:19 -0400 Subject: [PATCH] Add Optional attribute to argv property in Metadata model. This resovles issue where a ValidationError is raised when argv is not in the passed matedata and set to None in from_capa. --- capa/render/result_document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capa/render/result_document.py b/capa/render/result_document.py index 2b662fea..1689aec5 100644 --- a/capa/render/result_document.py +++ b/capa/render/result_document.py @@ -75,7 +75,7 @@ class Analysis(FrozenModel): class Metadata(FrozenModel): timestamp: datetime.datetime version: str - argv: Tuple[str, ...] + argv: Optional[Tuple[str, ...]] sample: Sample analysis: Analysis