Skip to content

Commit

Permalink
Fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoZell committed Nov 29, 2019
1 parent e4be4dd commit f9faa78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonModelBinder/JsonModelBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ from attribute in field.GetCustomAttributes<ValidationAttribute>()
};

// Add the validation results to the model state
var errors = validationResultFields.Concat(validationResultFields);
var errors = validationResultFields.Concat(validationResultProps);
foreach (var validationResultItem in errors)
bindingContext.ModelState.AddModelError(validationResultItem.Member, validationResultItem.ErrorMessage);

Expand Down

0 comments on commit f9faa78

Please sign in to comment.