You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expectation: ThrowError(new ValidationFailure { ErrorMessage = "err" }); has the same behaviour as ThrowError("err");.
PropertyName/name just gets set to "generalErrors".
Stacktrace:
System.NullReferenceException: Object reference not set to an instance of an object.
at FastEndpoints.ProblemDetails.Error.Comparer.GetHashCode(Error obj)
at System.Collections.Generic.HashSet`1.AddIfNotPresent(T value,Int32&location)
at System.Collections.Generic.HashSet`1.Add(T item)
at FastEndpoints.ProblemDetails.Initialize(IReadOnlyList`1 failures, String instance, String traceId, Int32 statusCode)
at FastEndpoints.ProblemDetails..ctor(IReadOnlyList`1 failures, String instance, String traceId, Int32 statusCode)
at FastEndpoints.ProblemDetails.<>c.<.cctor>b__47_0(List`1 failures, HttpContext ctx, Int32 statusCode)
at FastEndpoints.HttpResponseExtensions.SendErrorsAsync(HttpResponse rsp, List`1 failures, Int32 statusCode, JsonSerializerContext jsonSerializerContext, CancellationToken cancellation)
at FastEndpoints.Endpoint`2.SendErrorsAsync(Int32 statusCode, CancellationToken cancellation)
at FastEndpoints.Endpoint`2.<>c__DisplayClass0_0.<<ExecAsync>g__ValidationFailed|0>d.MoveNext()--- End of stack trace from previous location ---
at FastEndpoints.Endpoint`2.ExecAsync(CancellationToken ct)
at FastEndpoints.Endpoint`2.ExecAsync(CancellationToken ct)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
The text was updated successfully, but these errors were encountered:
Sample
Expectation:
ThrowError(new ValidationFailure { ErrorMessage = "err" });
has the same behaviour asThrowError("err");
.PropertyName/name just gets set to "generalErrors".
Stacktrace:
The text was updated successfully, but these errors were encountered: