Skip to content

Customize ProblemDetails results with Minimal API #244

@Gamingdevil

Description

@Gamingdevil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions