Skip to content

Commit 4748e68

Browse files
authored
[PLT-0] remove datarow metadata validation (#2010)
1 parent fd781d5 commit 4748e68

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

libs/labelbox/src/labelbox/schema/data_row_metadata.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class DataRowMetadataSchema(BaseModel):
6565
DataRowMetadataSchema.model_rebuild()
6666

6767
Embedding: Type[List[float]] = conlist(float, min_length=128, max_length=128)
68-
String: Type[str] = Field(max_length=4096)
6968

7069

7170
# Metadata base class
@@ -1011,10 +1010,6 @@ def _validate_parse_text(
10111010
raise ValueError(
10121011
f"Expected a string type for the text field. Found {type(field.value)}"
10131012
)
1014-
if len(field.value) > String.metadata[0].max_length:
1015-
raise ValueError(
1016-
f"String fields cannot exceed {String.metadata.max_length} characters."
1017-
)
10181013
return [field.model_dump(by_alias=True)]
10191014

10201015

0 commit comments

Comments
 (0)