Skip to content

Commit 30cc2d1

Browse files
authored
fix: Schema compatibility check (#367)
Without this, I got the following error when listing pipelines: ``` Unknown directive '@OneOf'. ``` This loosens the schema check.
1 parent fd5004e commit 30cc2d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openhexa/cli/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def _detect_graphql_breaking_changes_if_needed(token):
134134

135135
def _detect_graphql_breaking_changes(token):
136136
"""Detect breaking changes between the schema referenced in the SDK and the server using graphql-core."""
137-
stored_schema_obj = build_schema(BUNDLED_SCHEMA_PATH.read_text())
137+
stored_schema_obj = build_schema(BUNDLED_SCHEMA_PATH.read_text(), assume_valid_sdl=True)
138138
server_schema_obj = build_client_schema(
139139
_query_graphql(get_introspection_query(input_value_deprecation=True), token=token)
140140
)

0 commit comments

Comments
 (0)