Schematics v2.1.1 Release Notes

Release Date: 2021-08-17 // over 2 years ago
    • โšก๏ธ 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>__)

Previous changes from v2.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>)