-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
return source in validation issues (#289)
- Loading branch information
1 parent
8e355e3
commit a77266b
Showing
4 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/Altinn.App.Core/Models/Validation/ValidationIssueSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
namespace Altinn.App.Core.Models.Validation | ||
{ | ||
/// <summary> | ||
/// Specifies the source of a validation issue | ||
/// </summary> | ||
public static class ValidationIssueSources | ||
{ | ||
/// <summary> | ||
/// File attachment validation | ||
/// </summary> | ||
public static readonly string File = nameof(File); | ||
|
||
/// <summary> | ||
/// Data model validation | ||
/// </summary> | ||
public static readonly string ModelState = nameof(ModelState); | ||
|
||
/// <summary> | ||
/// Required field validation | ||
/// </summary> | ||
public static readonly string Required = nameof(Required); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters