Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ProblemDetails): Allow filtering properties (Detail, ExceptionDetails) #194 #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jafin
Copy link

@jafin jafin commented Aug 17, 2023

Allow option to filter ProblemDetails property to independently include/exclude Detail, ExceptionDetails

  • Shouldn't break existing API

Could replace options.IncludeExceptionDetails, as can achieve the same thing, but was left to avoid breaking change.

Not totally happy with the API, please provide input.
Another option considered was similar to AllowedHeaderNames having a HashSet of string props that are allowed in the ProblemDetail response ?

Alternatively the extension method approach listed in #194.

Assists to resolve #194

…tails) for response ProblemDetails response. Resolves khellang#194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] ProblemDetails middleware allow send Detail property out of the box in Production
1 participant