Commit Graph

  • d0baf0f156 fix(fields): handle properly default value for type Callable (#2094) Eric Jolibois 2021-02-11 12:39:09 +01:00
  • f05bdb732f fix: check only first sublevel for validators with each_item (#1991) Eric Jolibois 2021-02-11 12:23:31 +01:00
  • 60ef8cc733 combined version bumps (#2339) Eric Jolibois 2021-02-11 00:48:02 +01:00
  • f0fc0828f5 chore: unpin pip and fix CI (#2337) Eric Jolibois 2021-02-11 00:16:14 +01:00
  • bd9c5723c6 [Docs] Friendly spell/case check in settings management (#2302) Jeff Astor 2021-01-29 12:45:57 -05:00
  • 13a5c7d676 fix(schema): fix schema generation with multiple Enums having the same name (#2226) Eric Jolibois 2021-01-02 10:33:36 +01:00
  • 43308d1b24 fix: force need of update_forward_refs in recursive models (#2221) Eric Jolibois 2021-01-02 09:38:13 +01:00
  • 4d22b31d0d Update link to include and exclude (#2222) Louis Guitton 2021-01-01 23:52:04 +01:00
  • 8d7e0b86f3 fix: do not ignore annotated fields when type is Union[Type[...], ...] (#2214) Eric Jolibois 2021-01-01 20:20:45 +01:00
  • 80175f3628 fix: ensure to always return one of the values in Literal field type (#2181) Eric Jolibois 2021-01-01 16:15:38 +01:00
  • 191647c970 build(deps): bump codecov/codecov-action from v1.0.15 to v1.1.1 (#2230) dependabot[bot] 2021-01-01 14:25:15 +00:00
  • 8e9117b6c7 build(deps): bump twine from 3.2.0 to 3.3.0 (#2224) dependabot[bot] 2021-01-01 14:24:15 +00:00
  • b156936e71 build(deps): bump mkdocs-material from 6.1.7 to 6.2.3 (#2223) dependabot[bot] 2021-01-01 14:23:56 +00:00
  • e6dfb4afba build(deps): bump coverage from 5.3 to 5.3.1 (#2212) dependabot[bot] 2021-01-01 14:23:25 +00:00
  • 7af90a8d6c Fix url fragment without query (#2169) Andrew M. White 2021-01-01 06:22:15 -08:00
  • c18634b42a fix: required fields default value is the same for static and dynamic models (#2167) Eric Jolibois 2021-01-01 15:20:49 +01:00
  • 2f439eff0d v1.7 patch (currently v1.7.3) (#2161) Samuel Colvin 2021-01-01 14:19:24 +00:00
  • 1c3ef841e6 feat: add validator for None, NoneType or Literal[None] (#2149) Eric Jolibois 2021-01-01 15:01:25 +01:00
  • 8bad7bc911 feat: add validate method on function to validate input without calling it (#2128) Eric Jolibois 2020-12-31 18:45:51 +01:00
  • 58a60707b4 Use % for percentage in string format (#1960) Edward Betts 2020-12-30 18:33:28 +00:00
  • 6b8d2babaa Fix #947, #1483, #1247: allow inner type vars to be present in parent generic classes (#1989) Davis Kirkendall 2020-12-30 19:23:55 +01:00
  • aacf592040 Add rediss (Redis over SSL) protocol to RedisDsn (#1911) Mykola Solodukha 2020-12-30 20:20:51 +02:00
  • 3496a473c7 build(deps): bump to pytest 6.2.1, pytest-mock 3.4.0, mkdocs-material 6.1.7 and codecov-action v1.0.15 (#2201) Eric Jolibois 2020-12-17 23:28:07 +01:00
  • 09a5e28fc7 ci: fix it by pinning importlib-metadata (#2202) Eric Jolibois 2020-12-17 23:09:19 +01:00
  • de0657e4a5 tempoarily pin pip Samuel Colvin 2020-11-30 23:33:24 +00:00
  • 465f267c7d Added StrictBytes type (#2136) Rick Izzo 2020-11-30 19:18:35 -05:00
  • 35fde4e216 Fix #2111: support pickle for built-in dataclasses (#2114) aimestereo 2020-11-30 22:28:14 +03:00
  • 2a82bd7ee3 chore: fix contributing steps (#2144) Eric Jolibois 2020-11-30 19:02:36 +01:00
  • 4169b1e2fa fix: support plain typing.Tuple (#2133) Eric Jolibois 2020-11-30 18:59:46 +01:00
  • c0ac53b757 fix: set right default value for required (optional) fields (#2143) Eric Jolibois 2020-11-30 18:55:50 +01:00
  • a82a411d60 fix: support underscore_attrs_are_private with generic models (#2139) Eric Jolibois 2020-11-30 18:54:07 +01:00
  • 1a2791d422 fix: update all modified field values in root_validator when validate_assignment is on (#2119) Eric Jolibois 2020-11-30 01:32:43 +01:00
  • 223744da9f Updated validators.md with the type of field (#2110) oridistor 2020-11-30 02:01:02 +02:00
  • 0b7a570afd Fixes a regression where Enum fields would not propagate keyword arguments to the schema (#2109) Ben Martineau 2020-11-29 23:57:42 +00:00
  • 7c3919ce4d combined version bumps (#2153) Samuel Colvin 2020-11-29 17:57:29 +00:00
  • 7cbab2bfad Bump email-validator from 1.1.1 to 1.1.2 (#2102) dependabot[bot] 2020-11-29 17:40:01 +00:00
  • 3461ad96ba Bump python-dotenv from 0.14.0 to 0.15.0 (#2083) dependabot[bot] 2020-11-29 17:37:11 +00:00
  • 5506d8ec19 Update type annotation for create_model function (#2071) Yurii Karabas 2020-11-29 19:34:12 +02:00
  • 4020ebc412 feat: add default encoder for Pattern type (#2056) Eric Jolibois 2020-11-29 18:20:43 +01:00
  • 9cb7ca744b add NonPositive/NonNegative Int/Float (#1987) Matthew Davis 2020-11-30 03:07:51 +11:00
  • 31bc2435d7 fix: ignore __doc__ as valid private attribute (#2091) Eric Jolibois 2020-11-05 00:11:13 +01:00
  • 6853032372 prepare for v1.7.2 release Samuel Colvin 2020-11-01 15:30:36 +00:00
  • 6c50a86df4 Bump codecov/codecov-action from v1.0.13 to v1.0.14 (#2080) dependabot[bot] 2020-11-01 15:25:40 +00:00
  • 4a094477c6 Fix generics creation time and allow model name reusing (#2078) Arseny Boykov 2020-11-01 02:37:03 +03:00
  • 4680940146 fix: keep the order of the fields when validate_assignment is set (#2075) Eric Jolibois 2020-10-31 19:47:22 +01:00
  • b3f7b28f13 fix: forward all the params of the stdlib dataclass when converted into _pydantic_ dataclass (#2066) Eric Jolibois 2020-10-31 19:45:20 +01:00
  • 9af8f11086 fix typo in example secret filename (#2074) milo-minderbinder 2020-10-31 14:41:18 -04:00
  • 8dcc87cf42 correct history Samuel Colvin 2020-10-28 19:26:46 +00:00
  • 4fb800337b uprev and create history Samuel Colvin 2020-10-28 19:24:46 +00:00
  • 6b1a0bff54 Prevent fields from being deleted from BaseModel.__dict__ when a field validator raises an unexpected exception (#2046) John Sabath 2020-10-28 14:21:26 -05:00
  • 0b9cd4e537 fix: pydantic dataclass can inherit from stdlib dataclass and arbitrary_types_allowed is supported (#2051) Eric Jolibois 2020-10-28 20:10:55 +01:00
  • e899692654 Add two overload variants to validate_arguments (#2055) layday 2020-10-28 21:09:24 +02:00
  • 73ed6ed5cb underscore_attrs_are_private causing TypeError (#2053) Samuel Colvin 2020-10-28 10:19:21 +00:00
  • fb5ea74bba Update datamodel_code_generator.md (#2058) Joscha Götzer 2020-10-28 11:18:38 +01:00
  • 8aad3a2f58 Refactor PrivateAttr to type-check like Field (#2057) Alex Hedges 2020-10-28 06:17:45 -04:00
  • 95435de452 build history and uprev version (#2040) Samuel Colvin 2020-10-26 11:31:10 +00:00
  • c83156d0e0 feat: make pydantic dataclass decorator support built-in dataclass (#1817) PrettyWood 2020-10-26 12:09:28 +01:00
  • 8b4e726be2 Fix typing coverage (#2032) Samuel Colvin 2020-10-26 10:25:48 +00:00
  • 44b639951b add pytest assert rewrite to create_module, rewrite existing tests (#2035) Arseny Boykov 2020-10-26 13:12:49 +03:00
  • 30cd121cfe Add ability to read secrets from files (#1820) mdgilene 2020-10-26 06:06:25 -04:00
  • 52889203ac Bump devtools from 0.6.0 to 0.6.1 (#2037) dependabot[bot] 2020-10-26 09:53:28 +00:00
  • 664cbcfc01 Add private attributes support (#1679) Arseny Boykov 2020-10-26 12:47:40 +03:00
  • 2f7e40476f include assert in validator test in pytest (#2033) Arseny Boykov 2020-10-25 22:50:38 +03:00
  • 0af5e5f559 Allow generics to extend concrete classes. fixes #2005 (#2006) Chris Hoogeboom 2020-10-25 15:22:25 -04:00
  • f2af9f7806 Fix #1999: call validator with correct "values" type in setattr (#2000) me-ransh 2020-10-25 21:18:56 +02:00
  • 5bfee873c8 Add ability to use min_length and max_length constraints with secret types (#1974) Yurii Karabas 2020-10-25 20:32:11 +02:00
  • 1736ea1e70 fix(validation): also check root_validators when validate_assignment is on (#1972) PrettyWood 2020-10-25 19:02:14 +01:00
  • e00dba322b Docs: Add validators to dynamic model (#1963) Benjamin Sitruk 2020-10-25 19:57:08 +02:00
  • 3e4c1b5714 Adding deque to valid field types (#1935) Tyler Wozniak 2020-10-25 10:52:34 -07:00
  • 8b2f299fc5 Fix representation of literal enums (#1747) (#1838) Noel Evans 2020-10-25 16:48:03 +00:00
  • d14731f16c schema ref_template (#1480) Gabriel 2020-10-25 12:24:37 -04:00
  • 5da8b9cded Parse time with tz (#1814) Noel Evans 2020-10-25 16:08:38 +00:00
  • 4bc4230df6 feat: support default_factory with BaseModel.construct (#1755) PrettyWood 2020-10-25 16:41:57 +01:00
  • 52aa5c456f Add init for forward ref stub (#1739) Sergey Teplyakov 2020-10-25 18:36:38 +03:00
  • a25aba26b5 linting as a separate CI step (#2030) Samuel Colvin 2020-10-25 15:03:33 +00:00
  • a43c2d2670 Revert "fix coverage" Samuel Colvin 2020-10-25 13:45:46 +00:00
  • 6e0c5c336c fix coverage Samuel Colvin 2020-10-25 13:44:09 +00:00
  • c4986ded1c Bump markdown from 3.3 to 3.3.1 (#2016) dependabot[bot] 2020-10-25 12:16:28 +00:00
  • 893fb8b6a0 Bump mkdocs-material from 6.0.2 to 6.1.0 (#2015) dependabot[bot] 2020-10-25 12:16:14 +00:00
  • 6b53cabe03 Add pickle support to dynamically created models and generics (#1686) Arseny Boykov 2020-10-18 22:55:44 +03:00
  • ab671a3670 feat(field): add Enum and IntEnum as valid types for fields (#1737) PrettyWood 2020-10-18 21:53:29 +02:00
  • 794d0bccf9 feat: add basic support for python 3.9 (#1844) PrettyWood 2020-10-18 21:36:18 +02:00
  • c8c895bbc5 Bump isort from 5.6.1 to 5.6.4 (#2013) dependabot[bot] 2020-10-18 20:23:45 +01:00
  • 3aacec4e17 feat(schema): support custom title, description and default for enums (#1749) PrettyWood 2020-10-18 21:23:06 +02:00
  • 29e3877a44 chore(deps-dev): bump mypy from 0.782 to 0.790 (#1998) PrettyWood 2020-10-18 20:59:22 +02:00
  • 8ccc5708f1 remove data.json, fix #1992 (#1994) Samuel Colvin 2020-10-11 19:34:37 +01:00
  • e8326f899e Include tests in source distributions (#1976) Louis Sautier 2020-10-09 15:32:27 +02:00
  • c6a24f28c5 Fix const validator not running when class validators are present (#1957) Hmvp 2020-10-09 14:26:11 +02:00
  • 30ee8e2203 Force fields.Undefined to be a singleton objectIn various places of the code, we compare directly to fields.Undefinedsince we assume it to be constant.When new models get created however, the object is deepcopied andis no longer identical with the original object.We therefore add __copy__ and __deepcopy__ methods to ensurethat the copied objects are actually the same original object. (#1981) Davis Kirkendall 2020-10-09 14:25:24 +02:00
  • d2972362c5 test_config_file_settings_nornir: use less common env. var names (#1977) Louis Sautier 2020-10-09 14:23:31 +02:00
  • fd3f2b0f55 fix linting Samuel Colvin 2020-10-09 13:14:53 +01:00
  • 130c9903d7 docs: fix typo (#1959) Jason Wu 2020-10-09 20:06:47 +08:00
  • 9d4ba6d4b5 - fix typo in docs/index.md (#1921) Stefan Götz 2020-10-09 21:52:08 +10:00
  • 7d0df22690 Fix typo in docstring (#1866) Gary Donovan 2020-10-09 22:11:59 +11:00
  • a89c97a3e3 add a __call__ stub to PyObject for mypy (#1849) Brian Maissy 2020-10-09 14:11:23 +03:00
  • dbb1ed0aaa remove strict_optional from sample mypy.ini in doc (#1830) Brian Maissy 2020-10-09 13:28:42 +03:00
  • be8ef63a33 docs: Fix incorrect description of copy method (#1821) Geon Kim - KimMachineGun 2020-10-09 19:28:04 +09:00
  • 75859a9d58 feat(tools): add parse_raw_as util (#1813) PrettyWood 2020-10-09 11:35:07 +02:00
  • 87aeab3672 Bump isort from 5.5.4 to 5.6.1 (#1980) dependabot[bot] 2020-10-09 10:32:16 +01:00
  • 76fdbe92be feat(dotenv): support home directory relative paths (e.g. ~/.env) (#1804) PrettyWood 2020-10-09 11:23:28 +02:00