ProblemDetails Title
- Dominant language
- C#
- Stars
- 1k
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Description
Currently, the title of the ProblemDetails Result, is hardcoded.
e.g., https://github.com/ardalis/Result/blob/638403856683c736007148ce1b27f2bf3615ab2e/src/Ardalis.Result.AspNetCore/ResultStatusMap.cs#L123
This does not allow internationalization and makes the content pretty generic. However, according to the RFC standard, localization is intended and the message provided in the example is pretty specific.
https://www.rfc-editor.org/rfc/rfc7807
First, I thought of having titles in multiple languages in ardalis.result, but now I think the best approach would be to allow the developer using ardalis.result to set the title. Any thoughts?
Contributor guide
Research direction
Start at src/Ardalis.Result.AspNetCore/ResultStatusMap.cs around line 123 and review the RFC 7807 example linked in the issue. Determine how a developer-provided ProblemDetails title should be represented and applied, then verify that the hardcoded title is no longer required while the existing result-to-response mapping still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100