Is there currently any way to override the way that ProblemDetails are constructed in ResultExtensions when using Minimal API? When using full blown Controllers, this is something very easy to do by manipulating AddResultConvention, but I don't see anything similar for Minimal API, as ToMinimalApiResult hard codes the format of the ProblemDetails, which doesn't entirely fit our needs.
If this is not possible, are there any plans to implement this?
I could write my own extension method, but it seems a bit of a waste to throw out all the logic that's already present in the Ardalis.Result package, so I wanted to check first.
Is there currently any way to override the way that ProblemDetails are constructed in ResultExtensions when using Minimal API? When using full blown Controllers, this is something very easy to do by manipulating
AddResultConvention, but I don't see anything similar for Minimal API, asToMinimalApiResulthard codes the format of the ProblemDetails, which doesn't entirely fit our needs.If this is not possible, are there any plans to implement this?
I could write my own extension method, but it seems a bit of a waste to throw out all the logic that's already present in the Ardalis.Result package, so I wanted to check first.