Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1696
Allow primitive arrays in
VectorObject.metadata, matching the StoragePutVectorsschema and the documented product-tag use case. Existing scalar validation is unchanged. Integer array elements remain integers, and nested objects/arrays and null array elements are not newly accepted.The change is confined to the shared Storage model, so it fixes synchronous and asynchronous callers without duplicating implementation changes. The regression exercises both public clients through MockTransport and checks the JSON actually sent to
PutVectors.Validation
From
src/storage, on Python 3.13.5:uv run --package storage3 pytest -q tests/test_vector_metadata.py --tb=line: 2 failed on unchanged upstream; 2 passed with the fix.uv run --package storage3 pytest -q tests/test_client.py tests/test_exceptions.py tests/test_utils.py tests/test_vector_metadata.py tests/_async/test_bucket.py tests/_sync/test_bucket.py: 68 passed.make mypy: passed, 34 source files.make tests: mypy passed, but integration startup failed withLegacyHealthCheckTimeoutError:supabase_storage_storage-pywas unhealthy. Integration pytest did not start. The CLI stopped the containers it created; unrelated containers were untouched.From the repository root:
uv run --package storage3 ruff check src/storage: passed.uv run --package storage3 ruff format --check src/storage: passed.uv build --package storage3: passed.git diff --check: passed.No other package, dependency, generated sync/async source, or documentation is changed. This restores an already documented input format.
@olirice @silentworks, please review.