ardalis/Result

ProblemDetails Title

開放

#126 建立於 2023年3月28日

 (1 則留言) (0 個反應) (0 位負責人)C# (126 個分叉)github user discovery
enhancementhelp wanted

倉庫指標

星標
 (1,034 顆星)
PR 合併指標
 (平均合併 8天 3小時) (30 天內合併 2 個 PR)

描述

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?

貢獻者指南