File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
samples/client/nestedinput Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ response::Value ModifiedVariable<Variables::InputABCD>::serialize(Variables::Inp
67
67
response::Value result { response::Type::Map };
68
68
69
69
result.emplace_back (R"js( d)js" s, ModifiedVariable<std::string>::serialize (std::move (inputValue.d )));
70
- result.emplace_back (R"js( a)js" s, ModifiedVariable<InputA>::serialize (std::move (inputValue.a )));
71
- result.emplace_back (R"js( b)js" s, ModifiedVariable<InputB>::serialize (std::move (inputValue.b )));
72
- result.emplace_back (R"js( bc)js" s, ModifiedVariable<InputBC>::serialize<TypeModifier::List>(std::move (inputValue.bc )));
70
+ result.emplace_back (R"js( a)js" s, ModifiedVariable<Variables:: InputA>::serialize (std::move (inputValue.a )));
71
+ result.emplace_back (R"js( b)js" s, ModifiedVariable<Variables:: InputB>::serialize (std::move (inputValue.b )));
72
+ result.emplace_back (R"js( bc)js" s, ModifiedVariable<Variables:: InputBC>::serialize<TypeModifier::List>(std::move (inputValue.bc )));
73
73
74
74
return result;
75
75
}
@@ -80,7 +80,7 @@ response::Value ModifiedVariable<Variables::InputBC>::serialize(Variables::Input
80
80
response::Value result { response::Type::Map };
81
81
82
82
result.emplace_back (R"js( c)js" s, ModifiedVariable<response::IdType>::serialize (std::move (inputValue.c )));
83
- result.emplace_back (R"js( b)js" s, ModifiedVariable<InputB>::serialize (std::move (inputValue.b )));
83
+ result.emplace_back (R"js( b)js" s, ModifiedVariable<Variables:: InputB>::serialize (std::move (inputValue.b )));
84
84
85
85
return result;
86
86
}
Original file line number Diff line number Diff line change @@ -559,8 +559,14 @@ response::Value ModifiedVariable<Variables::)cpp"
559
559
RequestLoader::unwrapSchemaType (inputField->type ().lock ());
560
560
561
561
sourceFile << R"cpp( result.emplace_back(R"js()cpp" << inputField->name ()
562
- << R"cpp( )js"s, ModifiedVariable<)cpp"
563
- << _schemaLoader.getCppType (type->name ()) << R"cpp( >::serialize)cpp"
562
+ << R"cpp( )js"s, ModifiedVariable<)cpp" ;
563
+
564
+ if (type->kind () == introspection::TypeKind::INPUT_OBJECT)
565
+ {
566
+ sourceFile << R"cpp( Variables::)cpp" ;
567
+ }
568
+
569
+ sourceFile << _schemaLoader.getCppType (type->name ()) << R"cpp( >::serialize)cpp"
564
570
<< getTypeModifierList (modifiers) << R"cpp( (std::move(inputValue.)cpp"
565
571
<< SchemaLoader::getSafeCppName (inputField->name ()) << R"cpp( )));
566
572
)cpp" ;
You can’t perform that action at this time.
0 commit comments