b2-sdk-python
b2-sdk-python copied to clipboard
Add models for corsRules and lifecycleRules instead of dicts
The models should have client-side data validation - https://github.com/samuelcolvin/pydantic can be simply used for that
After some discussion, this should be moved to https://github.com/Backblaze/b2-sdk-python/milestone/2
LifecycleRules are now annotated as typed dicts. Runtime validation of this is available in CLI when optional dependencies are installed, namely, pydantic v2.
We are open to PRs adding similar type annotation for corsRules.