We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcb702e commit 226fb02Copy full SHA for 226fb02
redisvl/schema/schema.py
@@ -170,12 +170,12 @@ def _make_field(storage_type, **field_inputs) -> BaseField:
170
171
@root_validator(pre=True)
172
@classmethod
173
- def validate_and_create_fields(cls, values):
+ def validate_and_create_ields(cls, values: Dict[str, Any]) -> Dict[str, Any]:
174
"""
175
Validate uniqueness of field names and create valid field instances.
176
177
# Ensure index is a dictionary for validation
178
- index = values.get("index")
+ index = values.get("index", {})
179
if not isinstance(index, IndexInfo):
180
index = IndexInfo(**index)
181
0 commit comments