Ryan Brink
06/09/2023, 12:59 PMbuildClientSchema.mjs:193 Uncaught Error: Introspection result missing interfaces: { kind: "OBJECT", name: "issue__c", fields: [[Object], [Object], [Object]] }.
Does anyone know what might be going on here? as far as I can tell, the SDL is valid (can feed sdl into voyager and see visualization). I've attached the introspection blob in case that helps. Appreciate any ideas 🙏bod
06/09/2023, 1:03 PMinterfaces
field is missingRyan Brink
06/09/2023, 1:08 PM._toIntrospectionSchema_()
call? otherwise I'm not sure how to generate thisbod
06/09/2023, 1:10 PMinterfaces
is of a nullable type. Yes it may be something like this!Ryan Brink
06/09/2023, 1:11 PMIntrospectionSchemaBuilder
seems like that would be the only way to get in the weeds w/ this schema generator, but it is privatedata class IntrospectionSchema
directlybod
06/09/2023, 1:13 PMexplicitNulls = false
, it's probably that?When this flag is disabled properties withvalues without default are not encoded;null
oh nice you guys use ktx serialization, i could probably just use a custom serializerso yes I think that should work 🙂
Ryan Brink
06/09/2023, 1:16 PMschema = schema.copy(
__schema = schema.__schema.copy(
types = schema.__schema.types.map {
if (it is IntrospectionSchema.Schema.Type.Object) {
it.copy(
interfaces = emptyList()
)
} else {
it
}
}
)
)
kinda gross but this solves it... now I get a new error 😄bod
06/09/2023, 1:16 PMRyan Brink
06/09/2023, 1:17 PMbod
06/09/2023, 1:17 PMRyan Brink
06/09/2023, 1:40 PMencodeDefaults = true
to the json serializer. Reason being, that if you don't things like Field.args
which default to an empty array will not be included in the encoded resultbod
06/09/2023, 1:42 PMargs
is not nullableencodeDefaults
Ryan Brink
06/09/2023, 1:42 PMbod
06/09/2023, 1:43 PMRyan Brink
06/09/2023, 1:44 PMbod
06/09/2023, 1:44 PMRyan Brink
06/09/2023, 1:45 PM