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
fix(backups): omit description from wire payload when not provided
## Purpose
`Backups.create` was unconditionally writing `body["description"] = description`
with a default of `""`. This prevented callers from ever reaching the backend's
`None` storage state — every backup received `description: Some("")` instead of
`None`, making the two states indistinguishable.
## Solution
Changed `description` parameter from `str = ""` to `str | None = None` in both
sync (`Backups.create`) and async (`AsyncBackups.create`) implementations, and in
both backcompat shims (`Pinecone.create_backup`, `AsyncPinecone.create_backup`).
The body assignment is now conditional on `description is not None`, so omitting
the parameter leaves the field absent from the JSON payload.
Updated unit tests to assert the new behaviour: description absent when not
provided, present when explicitly passed (including `""`).
0 commit comments