Skip to content

Commit 2259a87

Browse files
authored
fix: path to GraphQL schema for breaking change detection (#284)
1 parent b99d881 commit 2259a87

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

openhexa/cli/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ def _detect_graphql_breaking_changes_if_needed(token):
119119

120120
def _detect_graphql_breaking_changes(token):
121121
"""Detect breaking changes between the schema referenced in the SDK and the server using graphql-core."""
122-
stored_schema_obj = build_schema((Path(__file__).parent / "graphql" / "schema.generated.graphql").open().read())
122+
stored_schema_obj = build_schema(
123+
(Path(__file__).parent.parent / "graphql" / "schema.generated.graphql").open().read()
124+
)
123125
server_schema_obj = build_client_schema(
124126
_query_graphql(get_introspection_query(input_value_deprecation=True), token=token)
125127
)

0 commit comments

Comments
 (0)