Upgrade Pydantic to 1.8.2 to resolve the security issue. See https://pydantic-docs.helpmanual.io/changelog/ and https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh