Skip to content

How to customise the ProblemDetails object when capturing FluentValidation exceptions? #195

@iaingymware

Description

@iaingymware

Hi

I have this up and running when using the default ProblemDetails implementation, however I want to update some of the values, for example the type, to link out to my own documentation specifying the validation requirements.

I can't figure out how to override the ProblemDetails template.

I am currently using the example ProblemDetailsOptionsExtensions class from the samp and I can see it grabs the errors and adds them to a dictionary then passes this into a ProblemDetailsFactory class to generate the response.

How can I override the ProblemDetailsFactory implementation to provide my own Type data?

Thanks

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