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 3c4559b
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."
179
177
}
180
178
}
181
179
}
182
180
181
+
/**
182
+
* Directive argument values never reach resolver methods, so an enum used in a directive doesn't need a class. Without one
183
+
* 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) {
358
+
val resolverInfo =if (item.clazz ==Any::class.java) {
317
359
getResolverInfoFromTypeDictionary(item.type.name)
318
360
?: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.")
319
361
} else {
@@ -349,7 +391,7 @@ internal class SchemaClassScanner(
type.getExtendedFieldDefinitions(extensionDefinitions).forEach { field ->
@@ -386,7 +428,7 @@ internal class SchemaClassScanner(
386
428
if (options.preferGraphQLResolver && realEntry.hasResolverRef()) {
387
429
log.warn("The real entry ${realEntry.joinReferences()} is a GraphQLResolver so ignoring this one ${javaType.unwrap()}$reference")
388
430
} else {
389
-
if (java.util.Map::class.java.isAssignableFrom(javaType.unwrap())) {
431
+
if (Map::class.java.isAssignableFrom(javaType.unwrap())) {
390
432
throwSchemaClassScannerError("Two different property map classes used for type ${type.name}:\n${realEntry.joinReferences()}\n\n- ${javaType}:\n| ${reference.getDescription()}")
391
433
}
392
434
throwSchemaClassScannerError("Two different classes used for type ${type.name}:\n${realEntry.joinReferences()}\n\n- ${javaType.typeName}:\n| ${reference.getDescription()}")
0 commit comments