Skip to content

Commit 2868ef8

Browse files
committed
FIX: Fix json explicit optional construction
1 parent 478f2a2 commit 2868ef8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
### Bug fixes
1111
- Added conversion for missing schemas for function `RTypeFromSchema`
12+
- Added explicit optional construction in `json_helpers.hpp` (credit: Enrico Detoma)
1213

1314
## 0.47.0 - 2026-02-04
1415

src/detail/json_helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ std::optional<std::string> ParseAt(std::string_view endpoint,
6666
throw JsonResponseError::TypeMismatch(endpoint, std::string{key} + " string",
6767
val_json);
6868
}
69-
return val_json;
69+
return std::optional<std::string>{val_json};
7070
}
7171

7272
template <>

0 commit comments

Comments
 (0)