diff --git a/aries_cloudagent/messaging/tests/test_valid.py b/aries_cloudagent/messaging/tests/test_valid.py index 025f06e7c2..8983d27964 100644 --- a/aries_cloudagent/messaging/tests/test_valid.py +++ b/aries_cloudagent/messaging/tests/test_valid.py @@ -502,9 +502,7 @@ def test_credential_type(self): with self.assertRaises(ValidationError): CREDENTIAL_TYPE_VALIDATE(["WrongType", "AnotherWrongType"]) - with self.assertRaises(ValidationError): - CREDENTIAL_TYPE_VALIDATE(["VerifiableCredential"]) - + CREDENTIAL_TYPE_VALIDATE(["VerifiableCredential"]) CREDENTIAL_TYPE_VALIDATE(["VerifiableCredential", "AnotherType"]) CREDENTIAL_TYPE_VALIDATE(["SomeType", "AnotherType", "VerifiableCredential"]) diff --git a/aries_cloudagent/messaging/valid.py b/aries_cloudagent/messaging/valid.py index 0838f84af6..96522cadfc 100644 --- a/aries_cloudagent/messaging/valid.py +++ b/aries_cloudagent/messaging/valid.py @@ -772,11 +772,6 @@ def __call__(self, value): length = len(value) if length < 1 or CredentialType.CREDENTIAL_TYPE not in value: raise ValidationError(f"type must include {CredentialType.CREDENTIAL_TYPE}") - if length == 1: - raise ValidationError( - "type must include additional, more narrow," - " types (e.g. UniversityDegreeCredential)" - ) return value