Skip to content

Commit 6fab9a1

Browse files
authored
Merge pull request #65 from Project-MONAI/release/0.1.6
Remove length limit for Identity
2 parents a9ec685 + 5708d78 commit 6fab9a1

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Messaging/Events/TaskCallbackEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class TaskCallbackEvent : EventBase
5454
/// Gets or sets the identity provided by the external service.
5555
/// </summary>
5656
[JsonProperty(PropertyName = "identity")]
57-
[Required, MaxLength(63)]
57+
[Required]
5858
public string Identity { get; set; }
5959

6060
/// <summary>

src/Messaging/Tests/TaskCallbackEventTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ public void ValidationThrowsOnError()
4141
runnerComplete.CorrelationId = Guid.NewGuid().ToString();
4242
Assert.Throws<MessageValidationException>(() => runnerComplete.Validate());
4343

44-
runnerComplete.Identity = "1234567890123456789012345678901234567890123456789012345678901234567890";
45-
Assert.Throws<MessageValidationException>(() => runnerComplete.Validate());
46-
4744
runnerComplete.Identity = "123456789012345678901234567890123456789012345678901234567890123";
4845
var exception = Record.Exception(() => runnerComplete.Validate());
4946
Assert.Null(exception);

0 commit comments

Comments
 (0)