Skip to content

Commit

Permalink
Use ORM mode for HttpProxySettings
Browse files Browse the repository at this point in the history
Fix pydantic.error_wrappers.ValidationError when using an HTTP proxy and writing JSON output.
  • Loading branch information
bcyrill authored Oct 27, 2022
1 parent ff6887d commit 5d5db18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sslyze/json/json_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5d5db18

Please sign in to comment.