Check if RepositoryAttribute can be created
This use case checks whether a RepositoryAttribute, which is an unshared LocalAttribute whose content
is an IdentityAttribute, can be created without actually creating it.
If a RepositoryAttribute can be created, this can be achieved by executing the Create a RepositoryAttribute use case.
Parameters
- The
content
is an IdentityAttribute without theowner
property, since its value would automatically be set to theaddress
of your Identity during the potential creation of the RepositoryAttribute.
On Success
- Returns a
result
that indicates if a RepositoryAttribute can be created based on the specifiedcontent
. - If the
isSuccess
property of theresult
has the valuetrue
, the RepositoryAttribute can currently be created. - If the
isSuccess
property of theresult
has the valuefalse
, the RepositoryAttribute cannot currently be created. This may have the following reasons:- The provided
content.value.@type
does not match one of the allowed IdentityAttribute value types. - There is already an existing RepositoryAttribute whose
succeededBy
property is undefined that has the exact samecontent.value
.
- The provided
On Failure
- The parameters are malformed.