Validr

Latest version: v1.2.2

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

Scan your dependencies

Page 2 of 2

1.1.0

Added

- Support control validator accept and output type, add `object` parameter. 22 24
- Add `accept_object` parameter to `str` validator. 24
- Handle invalid values more flexibly. 23 25
- Add `invalid_to` and `invalid_to_default` parameter. 25
- Add `field` and `value` attributes to ValidrError 25

Changed

- `validator` decorator now use `accept` and `output` to control data types, `string` argument is deprecated. 24

1.0.6

Fixed

- Fix list unique check slow 17,21
- Fix install error when system encoding not UTF-8 19

1.0.4

Added

- Add `is_string` and `validator` attributes to validator

1.0.3

Changed

- Support set and frozenset as schema slice keys
- Support create model with dict as position argument
- Fix copy custom validator

1.0.0

Added

- A Python based schema and validators, easy to write schema with fewer mistakes
- Model class, similar to dataclass in python 3.7

Changed

- Not compatible with previous schema!

0.14.1

This is the last version of **old schema syntax**.

Added

- A JSON String based schema and validators, works for an internal web application

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.