You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/generator/federation/FederatedSchemaGeneratorHooks.kt
+23-5
Original file line number
Diff line number
Diff line change
@@ -97,9 +97,14 @@ open class FederatedSchemaGeneratorHooks(
val federationUrl = linkSpecs[FEDERATION_SPEC]?.url ?:FEDERATION_SPEC_LATEST_URL
397
+
if (!isFederationVersionAtLeast(federationUrl, requiredVersion.first, requiredVersion.second)) {
398
+
throwIllegalArgumentException("@$directiveName directive requires Federation ${requiredVersion.first}.${requiredVersion.second} or later, but version $federationUrl was specified")
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/generator/federation/directives/OverrideDirective.kt
+14-10
Original file line number
Diff line number
Diff line change
@@ -85,31 +85,35 @@ internal fun overrideDirectiveDefinition(federationVersion: String = FEDERATION_
85
85
* Converts a GraphQL directive to an applied override directive with proper validation
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/directives/compose/ComposeDirectiveTest.kt
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/directives/override/OverrideDirectiveTest.kt
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/directives/policy/PolicyDirectiveTest.kt
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/directives/requiresscope/RequiresScopesDirectiveTest.kt
0 commit comments