Schematics

Latest version: v2.1.1

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

Scan your dependencies

Page 1 of 4

2.1.1

==================
- Update error message for incorrect choices field
`572 <https://github.com/schematics/schematics/pull/572>`__
(`begor <https://github.com/begor>`__)
- Avoid some deprecation warnings when using Python 3
`576 <https://github.com/schematics/schematics/pull/576>`__
(`jesuslosada <https://github.com/jesuslosada>`__)
- Fix EnumType enums with value=0 not working with use_values=True
`594 <https://github.com/schematics/schematics/pull/594>`__
(`nikhilgupta345 <https://github.com/nikhilgupta345>`__)
- Fix syntax warning over comparison of literals using is.
`611 <https://github.com/schematics/schematics/pull/611>`__
(`tirkarthi <https://github.com/tirkarthi>`__)
- Add help text generation capability to Models
`543 <https://github.com/schematics/schematics/pull/543>`__
(`MartinHowarth <https://github.com/MartinHowarth>`__)
- Update documentation
`578 <https://github.com/schematics/schematics/pull/578>`__
(`BobDu <https://github.com/BobDu>`__)
`604 <https://github.com/schematics/schematics/pull/604>`__
(`BryanChan777 <https://github.com/BryanChan777>`__)
`605 <https://github.com/schematics/schematics/pull/605>`__
(`timgates42 <https://github.com/timgates42>`__)
`608 <https://github.com/schematics/schematics/pull/608>`__
(`dasubermanmind <https://github.com/dasubermanmind>`__)
- Add test coverage for model validation inside Dict/List
`588 <https://github.com/schematics/schematics/pull/588>`__
(`borgstrom <https://github.com/borgstrom>`__)
- Added German translation
`614 <https://github.com/schematics/schematics/pull/614>`__
(`hkage <https://github.com/hkage>`__)

2.1.0

==================
**[BREAKING CHANGE]**

- Drop Python 2.6 support
`517 <https://github.com/schematics/schematics/pull/517>`__
(`rooterkyberian <https://github.com/rooterkyberian>`__)

Other changes:

- Add TimedeltaType
`540 <https://github.com/schematics/schematics/pull/540>`__
(`gabisurita <https://github.com/gabisurita>`__)
- Allow to create Model fields dynamically
`512 <https://github.com/schematics/schematics/pull/512>`__
(`lkraider <https://github.com/lkraider>`__)
- Allow ModelOptions to have extra parameters
`449 <https://github.com/schematics/schematics/pull/449>`__
(`rmb938 <https://github.com/rmb938>`__)
`506 <https://github.com/schematics/schematics/pull/506>`__
(`ekampf <https://github.com/ekampf>`__)
- Accept callables as serialize roles
`508 <https://github.com/schematics/schematics/pull/508>`__
(`lkraider <https://github.com/lkraider>`__)
(`jaysonsantos <https://github.com/jaysonsantos>`__)
- Simplify PolyModelType.find_model for readability
`537 <https://github.com/schematics/schematics/pull/537>`__
(`kstrauser <https://github.com/kstrauser>`__)
- Enable PolyModelType recursive validation
`535 <https://github.com/schematics/schematics/pull/535>`__
(`javiertejero <https://github.com/javiertejero>`__)
- Documentation fixes
`509 <https://github.com/schematics/schematics/pull/509>`__
(`Tuoris <https://github.com/Tuoris>`__)
`514 <https://github.com/schematics/schematics/pull/514>`__
(`tommyzli <https://github.com/tommyzli>`__)
`518 <https://github.com/schematics/schematics/pull/518>`__
(`rooterkyberian <https://github.com/rooterkyberian>`__)
`546 <https://github.com/schematics/schematics/pull/546>`__
(`harveyslash <https://github.com/harveyslash>`__)
- Fix Model.init validation when partial is True
`531 <https://github.com/schematics/schematics/issues/531>`__
(`lkraider <https://github.com/lkraider>`__)
- Minor number types refactor and mocking fixes
`519 <https://github.com/schematics/schematics/pull/519>`__
(`rooterkyberian <https://github.com/rooterkyberian>`__)
`520 <https://github.com/schematics/schematics/pull/520>`__
(`rooterkyberian <https://github.com/rooterkyberian>`__)
- Add ability to import models as strings
`496 <https://github.com/schematics/schematics/pull/496>`__
(`jaysonsantos <https://github.com/jaysonsantos>`__)
- Add EnumType
`504 <https://github.com/schematics/schematics/pull/504>`__
(`ekamil <https://github.com/ekamil>`__)
- Dynamic models: Possible memory issues because of _subclasses
`502 <https://github.com/schematics/schematics/pull/502>`__
(`mjrk <https://github.com/mjrk>`__)
- Add type hints to constructors of field type classes
`488 <https://github.com/schematics/schematics/pull/488>`__
(`KonishchevDmitry <https://github.com/KonishchevDmitry>`__)
- Regression: Do not call field validator if field has not been set
`499 <https://github.com/schematics/schematics/pull/499>`__
(`cmonfort <https://github.com/cmonfort>`__)
- Add possibility to translate strings and add initial pt_BR translations
`495 <https://github.com/schematics/schematics/pull/495>`__
(`jaysonsantos <https://github.com/jaysonsantos>`__)
(`lkraider <https://github.com/lkraider>`__)

2.0.1

==================
- Support for raising DataError inside custom validate_fieldname methods.
`441 <https://github.com/schematics/schematics/pull/441>`__
(`alexhayes <https://github.com/alexhayes>`__)
- Add specialized SchematicsDeprecationWarning.
(`lkraider <https://github.com/lkraider>`__)
- DateTimeType to_native method should handle type errors gracefully.
`491 <https://github.com/schematics/schematics/pull/491>`__
(`e271828- <https://github.com/e271828->`__)
- Allow fields names to override the mapping-interface methods.
`489 <https://github.com/schematics/schematics/pull/489>`__
(`toumorokoshi <https://github.com/toumorokoshi>`__)
(`lkraider <https://github.com/lkraider>`__)

2.0.0

==================
**[BREAKING CHANGE]**
Version 2.0 introduces many API changes, and it is not fully backwards-compatible with 1.x code.

`Full Changelog <https://github.com/schematics/schematics/compare/v1.1.2...v2.0.0>`_

- Add syntax highlighting to README examples
`486 <https://github.com/schematics/schematics/pull/486>`__
(`gabisurita <https://github.com/gabisurita>`__)
- Encode Unsafe data state in Model
`484 <https://github.com/schematics/schematics/pull/484>`__
(`lkraider <https://github.com/lkraider>`__)
- Add MACAddressType
`482 <https://github.com/schematics/schematics/pull/482>`__
(`aleksej-paschenko <https://github.com/aleksej-paschenko>`__)

2.0.0.b1

=====================
- Enhancing and addressing some issues around exceptions:
`477 <https://github.com/schematics/schematics/pull/477>`__
(`toumorokoshi <https://github.com/toumorokoshi>`__)
- Allow primitive and native types to be inspected
`431 <https://github.com/schematics/schematics/pull/431>`__
(`chadrik <https://github.com/chadrik>`__)
- Atoms iterator performance improvement
`476 <https://github.com/schematics/schematics/pull/476>`__
(`vovanbo <https://github.com/vovanbo>`__)
- Fixes 453: Recursive import\_loop with ListType
`475 <https://github.com/schematics/schematics/pull/475>`__
(`lkraider <https://github.com/lkraider>`__)
- Schema API
`466 <https://github.com/schematics/schematics/pull/466>`__
(`lkraider <https://github.com/lkraider>`__)
- Tweak code example to avoid sql injection
`462 <https://github.com/schematics/schematics/pull/462>`__
(`Ian-Foote <https://github.com/Ian-Foote>`__)
- Convert readthedocs links for their .org -> .io migration for hosted
projects `454 <https://github.com/schematics/schematics/pull/454>`__
(`adamchainz <https://github.com/adamchainz>`__)
- Support all non-string Iterables as choices (dev branch)
`436 <https://github.com/schematics/schematics/pull/436>`__
(`di <https://github.com/di>`__)
- When testing if a values is None or Undefined, use 'is'.
`425 <https://github.com/schematics/schematics/pull/425>`__
(`chadrik <https://github.com/chadrik>`__)

2.0.0a1

====================
- Restore v1 to\_native behavior; simplify converter code
`412 <https://github.com/schematics/schematics/pull/412>`__
(`bintoro <https://github.com/bintoro>`__)
- Change conversion rules for booleans
`407 <https://github.com/schematics/schematics/pull/407>`__
(`bintoro <https://github.com/bintoro>`__)
- Test for Model.\_\_init\_\_ context passing to types
`399 <https://github.com/schematics/schematics/pull/399>`__
(`sheilatron <https://github.com/sheilatron>`__)
- Code normalization for Python 3 + general cleanup
`391 <https://github.com/schematics/schematics/pull/391>`__
(`bintoro <https://github.com/bintoro>`__)
- Add support for arbitrary field metadata.
`390 <https://github.com/schematics/schematics/pull/390>`__
(`chadrik <https://github.com/chadrik>`__)
- Introduce MixedType
`380 <https://github.com/schematics/schematics/pull/380>`__
(`bintoro <https://github.com/bintoro>`__)

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.