Skip to content

Cannot instantiate default MozillaTlsConfigurationChecker - JSON with definition incorrectly formatted #614

@Marian-Kechlibar

Description

@Marian-Kechlibar

An attempt to run

mozilla_checker = MozillaTlsConfigurationChecker.get_default()

fails with exception thrown by pydantic: "version" parameter in the definition file
5.6.json
is required to be a string, but it is in fact a float (5.6).

Python environment (please complete the following information):

  • OS: Windows 11
  • Python version: 3.11

If I edit the 5.6 json file and redefine
version: 5.6
to
version: "5.6"
the bug disappears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions