From 5d5db18eb8836c3a064bd31556197c33d6efb3ef Mon Sep 17 00:00:00 2001 From: bcyrill Date: Thu, 27 Oct 2022 15:07:47 +0200 Subject: [PATCH] Use ORM mode for HttpProxySettings Fix pydantic.error_wrappers.ValidationError when using an HTTP proxy and writing JSON output. --- sslyze/json/json_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sslyze/json/json_output.py b/sslyze/json/json_output.py index a6812a6e..f3749f42 100644 --- a/sslyze/json/json_output.py +++ b/sslyze/json/json_output.py @@ -101,7 +101,7 @@ def from_orm(cls, all_scan_commands_attempts: AllScanCommandsAttempts) -> "AllSc # Identical fields in the JSON output -class _HttpProxySettingsAsJson(pydantic.BaseModel): +class _HttpProxySettingsAsJson(_BaseModelWithOrmModeAndForbid): hostname: str port: int