github pydantic/pydantic v1.8.2
v1.8.2 (2021-05-11)

latest releases: v2.7.1, v2.7.0, v2.7.0b1...
3 years ago

See Changelog.

Warning

A security vulnerability, level "moderate" is fixed in v1.8.2. Please upgrade ASAP. See security advisory CVE-2021-29510.

Changes

  • Security fix: Fix date and datetime parsing so passing either 'infinity' or float('inf')
    (or their negative values) does not cause an infinite loop,
    see security advisory CVE-2021-29510
  • fix schema generation with Enum by generating a valid name, #2575 by @PrettyWood
  • fix JSON schema generation with a Literal of an enum member, #2536 by @PrettyWood
  • Fix bug with configurations declarations that are passed as
    keyword arguments during class creation, #2532 by @uriyyo
  • Allow passing json_encoders in class kwargs, #2521 by @layday
  • support arbitrary types with custom __eq__, #2483 by @PrettyWood
  • support Annotated in validate_arguments and in generic models with python 3.9, #2483 by @PrettyWood

Don't miss a new pydantic release

NewReleases is sending notifications on new releases.