For those interested I've managed to get around this by the following:
Setting sc.CodecCreationEnabled(false) (this is default anyway)
For each reference, download the schema (you may have to do this recursively). Then use a regex or string replacement to substitute that into the parent schema.
Build the codec using your new "flattened" schema which now doesn't contain any references.
Hi there,
I have the following enum called Status:
And the following schema called Route:
When I try to load the Route schema via either
GetSchemaByVersion
orGetSchema
, I get back:Note I am using
sc.CodecCreationEnabled(true)
. Happy to disable this but then I'm not quite sure how I'd load the codec with the references.I've also tried referencing the Status type as
test.Status
in the Route schema, to no avail.Can you shed any light on why this might be occurring? Thank you
Using srclient 0.7.0, Golang 1.23