mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Improves OpenApi documentation
This commit is contained in:
1 parent
f2703b86c5
commit
77f95708b9
101 files changed
+2336
-294
No files matched your search
@@ -94,10 +94,10 @@ public abstract class BaseEndpoint<TRequest, TResponse> : Endpoint<TRequest, TRe
|
||||
// return a validation problem result with the constructed error details
|
||||
return Results.ValidationProblem(
|
||||
errorsDictionary,
|
||||
detail: "One or more validation errors occurred.", // TODO: implement translation?
|
||||
detail: "OneOrMoreValidationErrorsOccurred",
|
||||
instance: HttpContext.Request.Path,
|
||||
statusCode: 422,
|
||||
title: "Validation Error",
|
||||
title: "General.Validation",
|
||||
extensions: extensionsDictionary
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user