@@ -256,6 +256,7 @@ struct RPCResult {
256256 const std::string m_key_name; // !< Only used for dicts
257257 const std::vector<RPCResult> m_inner; // !< Only used for arrays or dicts
258258 const bool m_optional;
259+ const bool m_skip_type_check;
259260 const std::string m_description;
260261 const std::string m_cond;
261262
@@ -270,6 +271,7 @@ struct RPCResult {
270271 m_key_name{std::move (m_key_name)},
271272 m_inner{std::move (inner)},
272273 m_optional{optional},
274+ m_skip_type_check{false },
273275 m_description{std::move (description)},
274276 m_cond{std::move (cond)}
275277 {
@@ -290,11 +292,13 @@ struct RPCResult {
290292 const std::string m_key_name,
291293 const bool optional,
292294 const std::string description,
293- const std::vector<RPCResult> inner = {})
295+ const std::vector<RPCResult> inner = {},
296+ bool skip_type_check = false )
294297 : m_type{std::move (type)},
295298 m_key_name{std::move (m_key_name)},
296299 m_inner{std::move (inner)},
297300 m_optional{optional},
301+ m_skip_type_check{skip_type_check},
298302 m_description{std::move (description)},
299303 m_cond{}
300304 {
@@ -305,8 +309,9 @@ struct RPCResult {
305309 const Type type,
306310 const std::string m_key_name,
307311 const std::string description,
308- const std::vector<RPCResult> inner = {})
309- : RPCResult{type, m_key_name, false , description, inner} {}
312+ const std::vector<RPCResult> inner = {},
313+ bool skip_type_check = false )
314+ : RPCResult{type, m_key_name, false , description, inner, skip_type_check} {}
310315
311316 /* * Append the sections of the result. */
312317 void ToSections (Sections& sections, OuterType outer_type = OuterType::NONE, const int current_indent = 0 ) const ;
0 commit comments