Skip to content

Rename VectorStoreVectorAttribute dimensions constructor parameter#7460

Merged
jeffhandley merged 1 commit intomainfrom
roji/rename-dimensions-param
Apr 9, 2026
Merged

Rename VectorStoreVectorAttribute dimensions constructor parameter#7460
jeffhandley merged 1 commit intomainfrom
roji/rename-dimensions-param

Conversation

@roji
Copy link
Copy Markdown
Member

@roji roji commented Apr 9, 2026

This fixes an unfortunate naming mistake that slipped through, and was picked up by code analysis once we moved the code from the SK repo to dotnet/extensions - the constructor parameter Dimensions on VectorStoreVectorAttribute should be named dimensions.

This is unfortunately a (minor) user-facing breaking change, albeit a source-only one; it's zero-risk, only a tiny bit of work for users, and it's early enough that it seems OK for us to do something like this (but if people have the opposite opinion we can leave it).

Microsoft Reviewers: Open in CodeFlow

Copilot AI review requested due to automatic review settings April 9, 2026 13:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames the VectorStoreVectorAttribute constructor parameter from Dimensions to dimensions to fix a public API naming mistake (source-level breaking change) and updates internal usages/baselines accordingly.

Changes:

  • Rename VectorStoreVectorAttribute(int Dimensions) to VectorStoreVectorAttribute(int dimensions) and adjust validation/argument naming.
  • Update all in-repo attribute usages to use the corrected named argument dimensions:.
  • Update the VectorData Abstractions API description/baseline JSON to reflect the parameter rename.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/Libraries/Microsoft.Extensions.VectorData.Abstractions.Tests/CollectionModelBuilderTests.cs Updates test attribute usages to dimensions:.
src/Libraries/Microsoft.Extensions.VectorData.ConformanceTests/ModelTests/NoDataModelTests.cs Updates conformance test attribute usage to dimensions:.
src/Libraries/Microsoft.Extensions.VectorData.ConformanceTests/ModelTests/BasicModelTests.cs Updates conformance test attribute usage to dimensions:.
src/Libraries/Microsoft.Extensions.VectorData.ConformanceTests/EmbeddingGenerationTests.cs Updates conformance test attribute usages to dimensions:.
src/Libraries/Microsoft.Extensions.VectorData.ConformanceTests/DependencyInjectionTests.cs Updates conformance test attribute usage to dimensions:.
src/Libraries/Microsoft.Extensions.VectorData.Abstractions/RecordAttributes/VectorStoreVectorAttribute.cs Renames ctor parameter to dimensions and removes now-unneeded naming/analyzer pragmas.
src/Libraries/Microsoft.Extensions.VectorData.Abstractions/Microsoft.Extensions.VectorData.Abstractions.json Updates API member signature to reflect the new parameter name.

@jeffhandley jeffhandley added the breaking-change Issue or PR that represents a breaking API or functional change over a previous release. label Apr 9, 2026
Copy link
Copy Markdown
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a subtle, source-breaking change but I approve of making this change. I'll make sure it's included in the release notes.

@jeffhandley jeffhandley merged commit 1ad1a6e into main Apr 9, 2026
12 checks passed
@jeffhandley jeffhandley deleted the roji/rename-dimensions-param branch April 9, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-mevd breaking-change Issue or PR that represents a breaking API or functional change over a previous release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants