File tree Expand file tree Collapse file tree 7 files changed +49
-49
lines changed Expand file tree Collapse file tree 7 files changed +49
-49
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ enum class Episode
30
30
31
31
struct ReviewInput
32
32
{
33
- response::IntType stars;
34
- std::optional<response::StringType> commentary;
33
+ response::IntType stars {} ;
34
+ std::optional<response::StringType> commentary {} ;
35
35
};
36
36
37
37
namespace object {
Original file line number Diff line number Diff line change @@ -31,33 +31,33 @@ enum class TaskState
31
31
32
32
struct CompleteTaskInput
33
33
{
34
- response::IdType id;
35
- std::optional<TaskState> testTaskState;
36
- std::optional<response::BooleanType> isComplete;
37
- std::optional<response::StringType> clientMutationId;
34
+ response::IdType id {} ;
35
+ std::optional<TaskState> testTaskState {} ;
36
+ std::optional<response::BooleanType> isComplete {} ;
37
+ std::optional<response::StringType> clientMutationId {} ;
38
38
};
39
39
40
40
struct ThirdNestedInput
41
41
{
42
- response::IdType id;
42
+ response::IdType id {} ;
43
43
};
44
44
45
45
struct FourthNestedInput
46
46
{
47
- response::IdType id;
47
+ response::IdType id {} ;
48
48
};
49
49
50
50
struct SecondNestedInput
51
51
{
52
- response::IdType id;
53
- ThirdNestedInput third;
52
+ response::IdType id {} ;
53
+ ThirdNestedInput third {} ;
54
54
};
55
55
56
56
struct FirstNestedInput
57
57
{
58
- response::IdType id;
59
- SecondNestedInput second;
60
- ThirdNestedInput third;
58
+ response::IdType id {} ;
59
+ SecondNestedInput second {} ;
60
+ ThirdNestedInput third {} ;
61
61
};
62
62
63
63
namespace object {
Original file line number Diff line number Diff line change @@ -31,33 +31,33 @@ enum class TaskState
31
31
32
32
struct CompleteTaskInput
33
33
{
34
- response::IdType id;
35
- std::optional<TaskState> testTaskState;
36
- std::optional<response::BooleanType> isComplete;
37
- std::optional<response::StringType> clientMutationId;
34
+ response::IdType id {} ;
35
+ std::optional<TaskState> testTaskState {} ;
36
+ std::optional<response::BooleanType> isComplete {} ;
37
+ std::optional<response::StringType> clientMutationId {} ;
38
38
};
39
39
40
40
struct ThirdNestedInput
41
41
{
42
- response::IdType id;
42
+ response::IdType id {} ;
43
43
};
44
44
45
45
struct FourthNestedInput
46
46
{
47
- response::IdType id;
47
+ response::IdType id {} ;
48
48
};
49
49
50
50
struct SecondNestedInput
51
51
{
52
- response::IdType id;
53
- ThirdNestedInput third;
52
+ response::IdType id {} ;
53
+ ThirdNestedInput third {} ;
54
54
};
55
55
56
56
struct FirstNestedInput
57
57
{
58
- response::IdType id;
59
- SecondNestedInput second;
60
- ThirdNestedInput third;
58
+ response::IdType id {} ;
59
+ SecondNestedInput second {} ;
60
+ ThirdNestedInput third {} ;
61
61
};
62
62
63
63
namespace object {
Original file line number Diff line number Diff line change @@ -31,33 +31,33 @@ enum class TaskState
31
31
32
32
struct CompleteTaskInput
33
33
{
34
- response::IdType id;
35
- std::optional<TaskState> testTaskState;
36
- std::optional<response::BooleanType> isComplete;
37
- std::optional<response::StringType> clientMutationId;
34
+ response::IdType id {} ;
35
+ std::optional<TaskState> testTaskState {} ;
36
+ std::optional<response::BooleanType> isComplete {} ;
37
+ std::optional<response::StringType> clientMutationId {} ;
38
38
};
39
39
40
40
struct ThirdNestedInput
41
41
{
42
- response::IdType id;
42
+ response::IdType id {} ;
43
43
};
44
44
45
45
struct FourthNestedInput
46
46
{
47
- response::IdType id;
47
+ response::IdType id {} ;
48
48
};
49
49
50
50
struct SecondNestedInput
51
51
{
52
- response::IdType id;
53
- ThirdNestedInput third;
52
+ response::IdType id {} ;
53
+ ThirdNestedInput third {} ;
54
54
};
55
55
56
56
struct FirstNestedInput
57
57
{
58
- response::IdType id;
59
- SecondNestedInput second;
60
- ThirdNestedInput third;
58
+ response::IdType id {} ;
59
+ SecondNestedInput second {} ;
60
+ ThirdNestedInput third {} ;
61
61
};
62
62
63
63
namespace object {
Original file line number Diff line number Diff line change @@ -31,33 +31,33 @@ enum class TaskState
31
31
32
32
struct CompleteTaskInput
33
33
{
34
- response::IdType id;
35
- std::optional<TaskState> testTaskState;
36
- std::optional<response::BooleanType> isComplete;
37
- std::optional<response::StringType> clientMutationId;
34
+ response::IdType id {} ;
35
+ std::optional<TaskState> testTaskState {} ;
36
+ std::optional<response::BooleanType> isComplete {} ;
37
+ std::optional<response::StringType> clientMutationId {} ;
38
38
};
39
39
40
40
struct ThirdNestedInput
41
41
{
42
- response::IdType id;
42
+ response::IdType id {} ;
43
43
};
44
44
45
45
struct FourthNestedInput
46
46
{
47
- response::IdType id;
47
+ response::IdType id {} ;
48
48
};
49
49
50
50
struct SecondNestedInput
51
51
{
52
- response::IdType id;
53
- ThirdNestedInput third;
52
+ response::IdType id {} ;
53
+ ThirdNestedInput third {} ;
54
54
};
55
55
56
56
struct FirstNestedInput
57
57
{
58
- response::IdType id;
59
- SecondNestedInput second;
60
- ThirdNestedInput third;
58
+ response::IdType id {} ;
59
+ SecondNestedInput second {} ;
60
+ ThirdNestedInput third {} ;
61
61
};
62
62
63
63
namespace object {
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ enum class CatCommand
35
35
36
36
struct ComplexInput
37
37
{
38
- std::optional<response::StringType> name;
39
- std::optional<response::StringType> owner;
38
+ std::optional<response::StringType> name {} ;
39
+ std::optional<response::StringType> owner {} ;
40
40
};
41
41
42
42
namespace object {
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ static_assert(graphql::internal::MinorVersion == )cpp"
242
242
)cpp" ;
243
243
for (const auto & inputField : inputType.fields )
244
244
{
245
- headerFile << R"cpp( )cpp" << getFieldDeclaration (inputField) << R"cpp( ;
245
+ headerFile << R"cpp( )cpp" << getFieldDeclaration (inputField) << R"cpp( {} ;
246
246
)cpp" ;
247
247
}
248
248
headerFile << R"cpp( };
You can’t perform that action at this time.
0 commit comments