diff --git a/src/argilla/client/feedback/schemas/metadata.py b/src/argilla/client/feedback/schemas/metadata.py index 4e5ee6de30..d22e44ddb6 100644 --- a/src/argilla/client/feedback/schemas/metadata.py +++ b/src/argilla/client/feedback/schemas/metadata.py @@ -20,7 +20,7 @@ from argilla.client.feedback.schemas.enums import MetadataPropertyTypes from argilla.client.feedback.schemas.validators import validate_numeric_metadata_property_bounds -TERMS_METADATA_PROPERTY_MIN_VALUES = 2 +TERMS_METADATA_PROPERTY_MIN_VALUES = 1 class MetadataPropertySchema(BaseModel, ABC): diff --git a/tests/unit/client/feedback/schemas/test_metadata.py b/tests/unit/client/feedback/schemas/test_metadata.py index 2f7d2fbf21..d94725dd39 100644 --- a/tests/unit/client/feedback/schemas/test_metadata.py +++ b/tests/unit/client/feedback/schemas/test_metadata.py @@ -65,12 +65,7 @@ def test_terms_metadata_property(schema_kwargs: Dict[str, Any], server_payload: ( {"name": "terms-metadata-property", "values": []}, ValidationError, - "1 validation error for TermsMetadataProperty\nvalues\n ensure this value has at least 2 items", - ), - ( - {"name": "terms-metadata-property", "values": ["just-one"]}, - ValidationError, - "1 validation error for TermsMetadataProperty\nvalues\n ensure this value has at least 2 items", + "1 validation error for TermsMetadataProperty\nvalues\n ensure this value has at least 1 items", ), ( {"name": "terms-metadata-property", "values": ["a", "a"]},