diff options
Diffstat (limited to 'server/src/problem.cppm')
| -rw-r--r-- | server/src/problem.cppm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/problem.cppm b/server/src/problem.cppm index a124312..a72379a 100644 --- a/server/src/problem.cppm +++ b/server/src/problem.cppm | |||
| @@ -41,13 +41,13 @@ export struct details | |||
| 41 | }; | 41 | }; |
| 42 | 42 | ||
| 43 | export auto tag_invoke( | 43 | export auto tag_invoke( |
| 44 | json::value_from_tag, json::value& jv, details const& details, | 44 | json::value_from_tag, json::value& jv, details const& details, |
| 45 | std::locale locale) -> void | 45 | std::locale locale) -> void |
| 46 | { | 46 | { |
| 47 | auto obj = json::object{ | 47 | auto obj = json::object{ |
| 48 | {"type", details.type_uri}, | 48 | {"type", details.type_uri}, |
| 49 | {"title", details.title.str(locale)}, | 49 | {"title", details.title.str(locale)}, |
| 50 | {"status", static_cast<unsigned>(details.status)}, | 50 | {"status", static_cast<unsigned>(details.status)}, |
| 51 | }; | 51 | }; |
| 52 | if (details.detail) | 52 | if (details.detail) |
| 53 | obj["detail"] = details.detail->str(locale); | 53 | obj["detail"] = details.detail->str(locale); |