-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3d9eb3
commit 85b7731
Showing
5 changed files
with
165 additions
and
7 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/FluentValidation/BitzArt.FluentValidation.Extensions/ActionTypes.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,16 @@ | ||
namespace FluentValidation; | ||
|
||
public static class ActionTypes | ||
{ | ||
public const string Get = "Get"; | ||
|
||
public const string Create = "Create"; | ||
|
||
public const string Update = "Update"; | ||
|
||
public const string Patch = "Patch"; | ||
|
||
public const string Options = "Options"; | ||
|
||
public const string Delete = "Delete"; | ||
} |
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
15 changes: 14 additions & 1 deletion
15
src/FluentValidation/BitzArt.FluentValidation.Extensions/Enums/ActionType.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 |
---|---|---|
@@ -1,11 +1,24 @@ | ||
namespace FluentValidation; | ||
using System.Runtime.Serialization; | ||
|
||
namespace FluentValidation; | ||
|
||
public enum ActionType : byte | ||
{ | ||
[EnumMember(Value = ActionTypes.Get)] | ||
Get = 1, | ||
|
||
[EnumMember(Value = ActionTypes.Create)] | ||
Create = 2, | ||
|
||
[EnumMember(Value = ActionTypes.Update)] | ||
Update = 3, | ||
|
||
[EnumMember(Value = ActionTypes.Patch)] | ||
Patch = 4, | ||
|
||
[EnumMember(Value = ActionTypes.Options)] | ||
Options = 5, | ||
|
||
[EnumMember(Value = ActionTypes.Delete)] | ||
Delete = 6 | ||
} |
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