Skip to content

Comments

Avoid id invalidation in nested properties#1952

Merged
tsmith023 merged 3 commits intoweaviate:mainfrom
dudanogueira:remove-nested-object-id-validation
Feb 18, 2026
Merged

Avoid id invalidation in nested properties#1952
tsmith023 merged 3 commits intoweaviate:mainfrom
dudanogueira:remove-nested-object-id-validation

Conversation

@dudanogueira
Copy link
Contributor

This fixes #1932, and will allow id in nested property, like in:

from weaviate.classes.config import Property, DataType

client.collections.delete("TestNestedIdPython")
collection = client.collections.create(
    name="TestNestedIdPython",
    properties=[
        Property(
            name="metadata",
            data_type=DataType.OBJECT,
            nested_properties=[
                Property(name="id", data_type=DataType.TEXT),  # ❌ Validation error
                Property(name="value", data_type=DataType.TEXT),
            ]
        ),
    ]
)

Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Copy link
Collaborator

@tsmith023 tsmith023 left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, this is a nice fix!

@tsmith023 tsmith023 merged commit 6dab8cf into weaviate:main Feb 18, 2026
236 of 238 checks passed
@dudanogueira dudanogueira deleted the remove-nested-object-id-validation branch February 18, 2026 16:00
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.

Python client blocks id in nested properties

2 participants