Skip to content

Commit

Permalink
fix: include <Prefix>SharedTypes.h in clients
Browse files Browse the repository at this point in the history
  • Loading branch information
wravery committed Sep 24, 2024
1 parent eee1d66 commit e1e5f1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/client/benchmark/TodayClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "graphqlservice/internal/Version.h"

#include "TodaySchema.h"
#include "TodaySharedTypes.h"

#include <optional>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion samples/proxy/query/ProxyClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "graphqlservice/internal/Version.h"

#include "ProxySchema.h"
#include "ProxySharedTypes.h"

#include <optional>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions src/ClientGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ bool Generator::outputHeader() const noexcept
{
headerFile << R"cpp(
#include ")cpp" << _schemaLoader.getFilenamePrefix()
<< R"cpp(Schema.h"
<< R"cpp(SharedTypes.h"
)cpp";
}

Expand Down Expand Up @@ -1640,7 +1640,7 @@ int main(int argc, char** argv)
po::bool_switch(&noIntrospection),
"Do not expect support for Introspection")("shared-types",
po::bool_switch(&sharedTypes),
"Re-use shared types from <prefix>Schema.h");
"Re-use shared types from <prefix>SharedTypes.h");
positional.add("schema", 1).add("request", 1).add("prefix", 1).add("namespace", 1);

try
Expand Down

0 comments on commit e1e5f1f

Please sign in to comment.