Simple-models

Latest version: v0.6.2

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

Scan your dependencies

Page 2 of 4

0.4.1

------------------
* [Bugfix] Fix OMIT_MISSED_FIELDS behavior
* [Improvement] Follow consistency and raise ValidationError instead of ValueError on choices validation if failed

0.4.0

------------------
* [Feature] Implemented Document.Meta AttributeDict based options
* [Improvement] Renamed Meta.OMIT_NOT_PASSED_FIELDS -> Meta.OMIT_MISSED_FIELDS
* [Feature] Post-init model validation
* [Feature] New DictField

0.3.7

------------------
* New SimpleField required attribute handling (moved to validate() method)
* Implemented documents multiple inheritance
* More wise fields descriptors setters strategy on init and on __setattr__
* Split up SimpleField validation chain into several steps to adapt it
* for better overriding in case of inheritance (cleaner ListField
* implementation)

0.3.6

------------------
* Fixed OMIT_NOT_PASSED_FIELDS to work with defaults
* Updated SimpleField.required attribute handling;
* Implemented models inheritance, refactoring DocumentMeta class;
* Significant improvements in SimpleField.validate method - divide it into composition methods;

0.3.5

------------------
* Fixed CharField max_length validator; fixed AttributeDict setter
* Use common SimpleField value setter for descriptors and for Document init.
* Updated CharField, forbid to store None value, store '' instead; Simplified Document init

0.3.4

------------------
* Implemented Document.IGNORE_NONE_ON_INIT feature.
* Code clean up and minor fixes

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.