diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2024-02-09 16:33:14 +0100 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2024-02-09 16:33:14 +0100 |
commit | 163e2a94f600ffe0f982e3f605264ff2f2fe312b (patch) | |
tree | af8fb4c8c468dde726a4773b1304aa22c59186ac /Utilities/LibMatrix.DebugDataValidationApi/Controllers/ValidationController.cs | |
parent | Apply syntax style to LibMatrix (diff) | |
download | LibMatrix-163e2a94f600ffe0f982e3f605264ff2f2fe312b.tar.xz |
Apply syntax style to LibMatrix side projects
Diffstat (limited to 'Utilities/LibMatrix.DebugDataValidationApi/Controllers/ValidationController.cs')
-rw-r--r-- | Utilities/LibMatrix.DebugDataValidationApi/Controllers/ValidationController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/LibMatrix.DebugDataValidationApi/Controllers/ValidationController.cs b/Utilities/LibMatrix.DebugDataValidationApi/Controllers/ValidationController.cs index 1b93614..3420e56 100644 --- a/Utilities/LibMatrix.DebugDataValidationApi/Controllers/ValidationController.cs +++ b/Utilities/LibMatrix.DebugDataValidationApi/Controllers/ValidationController.cs @@ -7,7 +7,6 @@ namespace LibMatrix.DebugDataValidationApi.Controllers; [ApiController] [Route("/")] public class ValidationController(ILogger<ValidationController> logger) : ControllerBase { - [HttpPost("/validate/{type}")] public Task<bool> Get([FromRoute] string type, [FromBody] JsonElement content) { var t = Type.GetType(type); @@ -15,7 +14,8 @@ public class ValidationController(ILogger<ValidationController> logger) : Contro logger.LogWarning($"Type `{type}` does not exist!"); throw new ArgumentException($"Unknown type {type}!"); } + logger.LogInformation($"Validating {type}..."); return Task.FromResult(content.FindExtraJsonElementFields(t, "$")); } -} +} \ No newline at end of file |