You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@colans this ticket is just about validating fileNamePrefix in the SDK (on the client side) without sending a request to the server if the payload is wrong. That parameter will be still explicitly required to contain an empty string as documented here - https://www.backblaze.com/docs/cloud-storage-lifecycle-rules - if you want to apply the rules to all the files in the bucket.
The models should have client-side data validation - https://github.com/samuelcolvin/pydantic can be simply used for that
The text was updated successfully, but these errors were encountered: