Skip to content

Commit 60170a8

Browse files
committed
Hardcode the ignored patch version in generated comments
1 parent 73b16b6 commit 60170a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SchemaGenerator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,8 @@ bool Generator::outputHeader() const noexcept
17001700
#include "graphqlservice/GraphQLService.h"
17011701
17021702
// Check if the library version is compatible with schemagen )cpp"
1703-
<< graphql::internal::FullVersion << R"cpp(
1703+
<< graphql::internal::MajorVersion << R"cpp(.)cpp" << graphql::internal::MinorVersion
1704+
<< R"cpp(.0
17041705
static_assert(graphql::internal::MajorVersion == )cpp"
17051706
<< graphql::internal::MajorVersion
17061707
<< R"cpp(, "regenerate with schemagen: major version mismatch");

0 commit comments

Comments
 (0)