@@ -256,6 +256,7 @@ struct RPCResult {
256
256
const std::string m_key_name; // !< Only used for dicts
257
257
const std::vector<RPCResult> m_inner; // !< Only used for arrays or dicts
258
258
const bool m_optional;
259
+ const bool m_skip_type_check;
259
260
const std::string m_description;
260
261
const std::string m_cond;
261
262
@@ -270,6 +271,7 @@ struct RPCResult {
270
271
m_key_name{std::move (m_key_name)},
271
272
m_inner{std::move (inner)},
272
273
m_optional{optional},
274
+ m_skip_type_check{false },
273
275
m_description{std::move (description)},
274
276
m_cond{std::move (cond)}
275
277
{
@@ -290,11 +292,13 @@ struct RPCResult {
290
292
const std::string m_key_name,
291
293
const bool optional,
292
294
const std::string description,
293
- const std::vector<RPCResult> inner = {})
295
+ const std::vector<RPCResult> inner = {},
296
+ bool skip_type_check = false )
294
297
: m_type{std::move (type)},
295
298
m_key_name{std::move (m_key_name)},
296
299
m_inner{std::move (inner)},
297
300
m_optional{optional},
301
+ m_skip_type_check{skip_type_check},
298
302
m_description{std::move (description)},
299
303
m_cond{}
300
304
{
@@ -305,8 +309,9 @@ struct RPCResult {
305
309
const Type type,
306
310
const std::string m_key_name,
307
311
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} {}
310
315
311
316
/* * Append the sections of the result. */
312
317
void ToSections (Sections& sections, OuterType outer_type = OuterType::NONE, const int current_indent = 0 ) const ;
0 commit comments