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 d06c859
Browse filesBrowse the repository at this point in the historyBrowse files
assertEquals(data["tags"], mapOf("names" to listOf("x", "y")))
99
+
}
100
+
101
+
@Test
102
+
fun`property maps with object list fields should require a dictionary entry`() {
103
+
val error = assertThrows(SchemaClassScannerError::class.java) {
104
+
SchemaParser.newParser()
105
+
.schemaString(
106
+
"""
107
+
type Query {
108
+
greeting: Greeting!
109
+
}
110
+
111
+
type Greeting {
112
+
keys: [Key!]
113
+
}
114
+
115
+
type Key {
116
+
a: String
117
+
}
118
+
""")
119
+
.resolvers(object:GraphQLQueryResolver {
120
+
fungreeting(): Map<String, Any> =mapOf()
121
+
})
122
+
.build()
123
+
}
124
+
125
+
assertEquals(error.message, "The GraphQL schema type 'Key' 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.")
0 commit comments