Skip to content

Commit 3381f15

Browse files
committed
Fixed generator to correctly add the namespace for input types as an argument access
1 parent d296d29 commit 3381f15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SchemaGenerator.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3038,9 +3038,12 @@ std::string Generator::getArgumentAccessType(const InputField & argument) const
30383038
switch (argument.fieldType)
30393039
{
30403040
case InputFieldType::Builtin:
3041+
argumentType << getCppType(argument.type);
3042+
break;
3043+
30413044
case InputFieldType::Enum:
30423045
case InputFieldType::Input:
3043-
argumentType << getCppType(argument.type);
3046+
argumentType << _schemaNamespace << R"cpp(::)cpp" << getCppType(argument.type);
30443047
break;
30453048

30463049
case InputFieldType::Scalar:

0 commit comments

Comments
 (0)