Releases: pydantic/pydantic-core
Releases · pydantic/pydantic-core
v0.6.0 2022-10-27
- fix linting for newest clippy #309
- uprev-deps #308
- Error changes #307
- tests to confirm "loc" on errors with an alias #310
Full Changelog: v0.5.3...v0.6.0
v0.5.3 2022-10-20
- Change how arguments are defined to use
{'__args__': (...), '__kwargs__': {}}
, and allow simple list/tuple for just args
Full Changelog: v0.5.2...v0.5.3
v0.5.2 2022-10-18
What's Changed
Full Changelog: v0.5.1...v0.5.2
v0.5.1 2022-10-18
What's Changed
- support future and past dates and datetimes #295
- Tweak type annotations for
PydanticCustomError
andPydanticKindError
7029215 - Ci tweaks #297
- combine
literal_single_error
andliteral_multiple_error
#298 - Allow
Sequence
andtuple
tois_instance
validator #299 - fix repr for single literals #300
Full Changelog: v0.5.0...v0.5.1
v0.5.0 2022-10-16
- fix float
multiple_of
calc #286 - python types for
ErrorKind
#289 - add
CustomErrorValidator
#290 - Add
JsonValidator
#291 Literal[None]
->NoneValidator
5a65c11- correct use of
StrValidator
andStrConstrainedValidator
e671f33 - Schema extra #292
- add
json_function
toIsInstanceValidator
#293 - Logic for instances of subclasses of strings #294
Full Changelog: v0.4.0...v0.5.0
v0.4.0 2022-10-13
What's Changed
- tweak typing by @PrettyWood in #271
- add
outer_location
argument toValidatorCallable
by @samuelcolvin in #277 - Generator type by @samuelcolvin in #276
is_instance
JSON support by @samuelcolvin in #278- fix
JsonType
copy by @samuelcolvin in #279 - validator title and optionally omit context by @samuelcolvin in #283
- Improve errors by @sanders41 in #270
- support
deque
input to list, tuple etc., change how lengths are validated by @samuelcolvin in #275 - adding
PydanticOmit
exception by @samuelcolvin in #282 - unique error kinds by @samuelcolvin in #285
- Custom error kind by @samuelcolvin in #284
New Contributors
- @sanders41 made their first contribution in #270
Full Changelog: v0.3.1...v0.4.0
v0.3.1 2022-09-30
Full Changelog: v0.3.0...v0.3.1
v0.3.0 2022-09-29
- Rename core #248
- stop allowing str as basic input to validators #256
- Chain type #255
- limit sdist contents #257
- add
validator_instance
to function validators #258 - replace
*_items
->*_length
#259 - use
cls
foris-instance
andnew-class
#261 - build binaries for 3.11 #247
- helper functions for creating schemas #263
- custom errors on
union
andtagged-union
#262
Full Changelog: v0.2.1...v0.3.0
v0.2.1 2022-09-24
- Improve asking/answering questions #244
- add
call_after_init
tonew-class
validators #245 - add
slots
toSchemaValidator.__repr__
#246
Full Changelog: v0.2.0...v0.2.1
v0.2.0 2022-09-22
- add tests for validation context #220
- feat: allow fields to be
frozen
and addstrict
+context
support tovalidate_assignment
by @PrettyWood in #221 - rename
GenericListLike
intoGenericCollection
+ improve coverage by @PrettyWood in #222 - update pyodide to 0.21.0 release version by @messense in #226
- build wheels with stable rust #227
- Support
dict_items
for list like fields by @ytmimi in #225 - Fix coverage export #233
- add flag to allow only finite float values by @PrettyWood in #228
- bump pyo3 to 0.17.1 by @PrettyWood in #236
- rename
_types
to be public by @MatthijsKok in #240 - Default validator #242
- Only use
RecursiveContainerValidator
when necessary #243
Full Changelog: v0.1.0...v0.2.0