ardalis/Result

ProblemDetails Title

オープン

#126 opened on 2023/03/28

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)C# (126 件のフォーク)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (1,034 個のスター)
PR merge metrics
 (平均マージ 8d 3h) (30d で 2 merged PRs)

説明

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?

コントリビューターガイド