Skip to content

Commit

Permalink
Updated JsonContentValidator.cs
Browse files Browse the repository at this point in the history
Updated JsonContentValidator.cs to fix a exception thrown when parsing ethnic group data.
  • Loading branch information
erik1066 authored Feb 17, 2022
1 parent 7cbf7be commit 0e53640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CS.Sdk/Validators/JsonContentValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public ValidationResult Validate(string json, string transactionId = "")
$""));
}
break;
case Mmg.DataType.Coded when (element.Repetitions.HasValue && element.Repetitions.Value > 1) || (element.IsRepeat) || element.Name.Equals("Ethnic Group"):
case Mmg.DataType.Coded when (element.Repetitions.HasValue && element.Repetitions.Value > 1) || (element.IsRepeat):
foreach (JsonElement jsonArrayItem in property.EnumerateArray())
{
if (jsonArrayItem.ValueKind == JsonValueKind.Object)
Expand Down

0 comments on commit 0e53640

Please sign in to comment.