From b080f5b164aeb14a6369b5ed19e74c682e3497d0 Mon Sep 17 00:00:00 2001 From: Cheick Keita Date: Fri, 13 May 2022 13:12:22 -0700 Subject: [PATCH] Make tool_version, onefuzz_version, tool_name optinal (#1940) --- docs/webhook_events.md | 15 +++------------ src/pytypes/onefuzztypes/models.py | 6 +++--- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/docs/webhook_events.md b/docs/webhook_events.md index 849d87560..0630b4e96 100644 --- a/docs/webhook_events.md +++ b/docs/webhook_events.md @@ -267,10 +267,7 @@ If webhook is set to have Event Grid message format then the payload will look a "call_stack_sha256", "input_sha256", "task_id", - "job_id", - "tool_name", - "tool_version", - "onefuzz_version" + "job_id" ], "title": "Report", "type": "object" @@ -2129,10 +2126,7 @@ If webhook is set to have Event Grid message format then the payload will look a "call_stack_sha256", "input_sha256", "task_id", - "job_id", - "tool_name", - "tool_version", - "onefuzz_version" + "job_id" ], "title": "Report", "type": "object" @@ -6383,10 +6377,7 @@ If webhook is set to have Event Grid message format then the payload will look a "call_stack_sha256", "input_sha256", "task_id", - "job_id", - "tool_name", - "tool_version", - "onefuzz_version" + "job_id" ], "title": "Report", "type": "object" diff --git a/src/pytypes/onefuzztypes/models.py b/src/pytypes/onefuzztypes/models.py index a5f9e12a4..34b17cd01 100644 --- a/src/pytypes/onefuzztypes/models.py +++ b/src/pytypes/onefuzztypes/models.py @@ -214,9 +214,9 @@ class Report(BaseModel): asan_log: Optional[str] task_id: UUID job_id: UUID - tool_name: str - tool_version: str - onefuzz_version: str + tool_name: Optional[str] + tool_version: Optional[str] + onefuzz_version: Optional[str] scariness_score: Optional[int] scariness_description: Optional[str] minimized_stack: Optional[List[str]]