diff options
author | vman <public@vaughnnugent.com> | 2022-11-16 14:07:28 -0500 |
---|---|---|
committer | vman <public@vaughnnugent.com> | 2022-11-16 14:07:28 -0500 |
commit | 3fb601d14354c867e1ead94b027c99c4a2fc15b5 (patch) | |
tree | 5bf01312166d97eff255d1fdcd26bf314cebcf76 /VNLib.Plugins.Extensions.Validation/ValErrWebMessage.cs | |
parent | c3419e3e43f773ba9ee1e4854e15da873829fbd7 (diff) |
Add project files.
Diffstat (limited to 'VNLib.Plugins.Extensions.Validation/ValErrWebMessage.cs')
-rw-r--r-- | VNLib.Plugins.Extensions.Validation/ValErrWebMessage.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/VNLib.Plugins.Extensions.Validation/ValErrWebMessage.cs b/VNLib.Plugins.Extensions.Validation/ValErrWebMessage.cs new file mode 100644 index 0000000..118397a --- /dev/null +++ b/VNLib.Plugins.Extensions.Validation/ValErrWebMessage.cs @@ -0,0 +1,17 @@ +using System.Collections; +using System.Text.Json.Serialization; + +namespace VNLib.Plugins.Extensions.Validation +{ + /// <summary> + /// Extends the <see cref="WebMessage"/> class with provisions for a collection of validations + /// </summary> + public class ValErrWebMessage:WebMessage + { + /// <summary> + /// A collection of error messages to send to clients + /// </summary> + [JsonPropertyName("errors")] + public ICollection Errors { get; set; } + } +} |