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
{{ message }}
Repository navigation
Commit 0ae99e1
Browse filesBrowse the repository at this point in the historyBrowse files
"Enum type '${it.name}' is used in a directive, but no class could be found for that type name. Please pass a class for type '${it.name}' in the parser's dictionary."
"Input object type '${it.name}' is used in a directive, but no class could be found for that type name. Please pass a class for type '${it.name}' in the parser's dictionary."
182
180
}
183
181
}
184
182
}
185
183
184
+
/**
185
+
* Directive argument values never reach resolver methods, so an enum used in a directive doesn't need a class. Without one
186
+
* it goes into [unvalidatedTypes] and, unless a field uses it too, is built with its value names as values, see
val resolverInfo =if (item.clazz ==Object::class.java) {
366
+
val resolverInfo =if (item.clazz ==Any::class.java) {
325
367
getResolverInfoFromTypeDictionary(item.type.name)
326
368
?:throwSchemaClassScannerError("The GraphQL schema type '${item.type.name}' maps to a field of type java.lang.Object however there is no matching entry for this type in the type dictionary. You may need to add this type to the dictionary before building the schema.")
327
369
} else {
@@ -357,7 +399,7 @@ internal class SchemaClassScanner(
type.getExtendedFieldDefinitions(extensionDefinitions).forEach { field ->
@@ -394,7 +436,7 @@ internal class SchemaClassScanner(
394
436
if (options.preferGraphQLResolver && realEntry.hasResolverRef()) {
395
437
log.warn("The real entry ${realEntry.joinReferences()} is a GraphQLResolver so ignoring this one ${javaType.unwrap()}$reference")
396
438
} else {
397
-
if (java.util.Map::class.java.isAssignableFrom(javaType.unwrap())) {
439
+
if (Map::class.java.isAssignableFrom(javaType.unwrap())) {
398
440
throwSchemaClassScannerError("Two different property map classes used for type ${type.name}:\n${realEntry.joinReferences()}\n\n- ${javaType}:\n| ${reference.getDescription()}")
399
441
}
400
442
throwSchemaClassScannerError("Two different classes used for type ${type.name}:\n${realEntry.joinReferences()}\n\n- ${javaType.typeName}:\n| ${reference.getDescription()}")
0 commit comments