Validr

Latest version: v1.2.2

Safety actively analyzes 620828 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.2.2

Added

- add nstr validator 63

Fixed

- support Python 3.10 ~ 3.12 61
- fix some typing hints 61
- fix int validator default max value 62

1.2.1

Added

- add bytes validator
- add typing hints for public APIs

Changed

- support T.enum with enum class parameter

1.2.0

Added

- add union validator. 36
- support dynamic dict validator. 38
- add timedelta validator. 39
- add enum validator. 40
- add slug validator. 41
- add fqdn validator. 41
- support nested model class. 7520d96
- str validator accept int objects, and support match parameter. 38
- dict validator support slim parameter. 47
- add maxlen parameter to dict, url, and create_re_validator. a64640

Changed

- replaced custom enum validator with builtin enum validator.

Deprecated

- `create_enum_validator` functon is deprecated, use builtin enum validator instead.

1.1.3

Added

- fields function support dict schema, eg: T.dict({...}). 32

Changed

- Change behavior from deepcopy to copy when use dict and list validator without inner validator, improve performance. 31
- Deprecate Python 3.4, Add Python 3.8 to CI 33

1.1.2

Added

- Support pure Python mode. 30

1.1.1

Added

- Add ModelInvalid exception, support get error datails when modelclass invalid. 28 28

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.