Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
seungyongshim committed Feb 18, 2024
1 parent eb7201d commit 3f1d26b
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public class ResponseAddTraceIdFilter : IEndpointFilter

return ret switch
{
//ValidationProblem c => AddTraceIdForFluentValidation(c),
IValueHttpResult v => Results.Text
(
AddTraceId(v.Value).ToJsonString(serializerOptions),
Expand Down Expand Up @@ -47,12 +46,6 @@ public class ResponseAddTraceIdFilter : IEndpointFilter
_ => ret
};

ValidationProblem AddTraceIdForFluentValidation(ValidationProblem v)
{
v.ProblemDetails.Extensions["traceId"] = id;
return v;
}

JsonNode AddTraceId(object? value)
{
var root = JsonSerializer.SerializeToNode(value, serializerOptions)!.Root;
Expand Down

0 comments on commit 3f1d26b

Please sign in to comment.