Skip to content

Allow array metadata values on VectorObject - #1699

Closed
Hashim1999164 wants to merge 1 commit into
supabase:mainfrom
Hashim1999164:fix/vector-metadata-arrays
Closed

Hashim1999164 wants to merge 1 commit into
supabase:mainfrom
Hashim1999164:fix/vector-metadata-arrays

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Oct 2, 2026 •

Copy link
Copy Markdown

Summary

Fixes #1696. VectorObject.metadata only accepted scalar string, bool, and float values, so callers could not pass arrays like {"tags": ["laptop", "portable"]} even though PutVectors supports them.

Widens the type to also allow lists of string, bool, int, and float (with int ahead of float so integers stay integers), and adds MockTransport coverage for sync and async put.

Test plan

  • pytest tests/test_client.py::test_vector_object_accepts_array_metadata tests/test_client.py::test_sync_put_vectors_sends_array_metadata tests/test_client.py::test_async_put_vectors_sends_array_metadata
  • Confirm PutVectors body keeps array metadata and integer values unchanged

PutVectors accepts string, bool, and number arrays in metadata, but the
client model only allowed scalars. Widen the type and cover put via MockTransport.

Closes supabase#1696
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

storage3 VectorObject rejects supported array metadata

2 participants