Skip to content

Commit b324eb4

Browse files
committed
Output include statements for unions even if no interfaces
1 parent f05a238 commit b324eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SchemaGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2874,7 +2874,7 @@ using namespace std::literals;
28742874

28752875
if (!_loader.isIntrospection())
28762876
{
2877-
if (!objectType.interfaces.empty())
2877+
if (!objectType.interfaces.empty() || !objectType.unions.empty())
28782878
{
28792879
NamespaceScope implementsNamespace { headerFile, R"cpp(implements)cpp" };
28802880

0 commit comments

Comments
 (0)