Summary
This guide will help you migrate your codebase from 0.8.X to 0.9.0.Installation
List of backwards incompatible changes
- Guard.use_many has been removed and its functionality added to Guard.use.
- Guard.use no longer support specifying uninstantiated validators with its arguments as a tuple. You must now pass an instantiated validator class.
- Calling Guard.use with the same
onvalue multiple times will overwrite the validators applied to the property specified byon. - Fetching a Guard by supplying the
namekeyword argument in the constructor is no Longer Supported. Use Guard.load instead. - Guard.fetch_guard has been removed. Use Guard.load instead.
- Guard.upsert_guard has been removed. Use Guard.save instead.
New Guard.use Contract
Guard.use now supports specifying multiple validators. Use this pattern instead of the removed Guard.use_many:on value multiple times will overwrite the validators applied to the property specified by on.