octabytes / FireO

Google Cloud Firestore modern and simplest convenient ORM package in Python. FireO is specifically designed for the Google's Firestore
https://fireo.octabyte.io
Apache License 2.0
250 stars 29 forks source link

Adding validator_kwargs to FieldAttribute #120

Closed isaacna closed 3 years ago

isaacna commented 3 years ago

Adding validator_kwargs to FieldAttribute so that fields can be the validator function can take in multiple params besides just the field value itself. This allows validation on multiple arguments, or allows passing in extraneous metadata required for the vaildator function.

Also bumping to 1.4.5.

Relevant use case for another project.

Will create a separate PR for adding documentation to the gh-pages branch after this PR.