Hi there,
I have the following enum called Status:
{
"schema": {
"type": "enum",
"namespace": "test",
"name": "Status",
"symbols": ["Pending", "Enroute", "Arrive", "Complete"]
}
}
And the following schema called Route:
{
"schema": {
"type": "record",
"namespace": "test",
"name": "Route",
"fields": [
{
"name": "orgId",
"type": "string"
},
{
"name": "status",
"type": "Status"
}
]
},
"references": [
{
"name": "test.Status",
"subject": "Status",
"version": 1
}
]
}
When I try to load the Route schema via either GetSchemaByVersion or GetSchema, I get back:
schema registry error: Record "test.Route" field 2 ought to be valid Avro named type: unknown type name: "Status"
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
Hi there,
I have the following enum called Status:
{ "schema": { "type": "enum", "namespace": "test", "name": "Status", "symbols": ["Pending", "Enroute", "Arrive", "Complete"] } }And the following schema called Route:
{ "schema": { "type": "record", "namespace": "test", "name": "Route", "fields": [ { "name": "orgId", "type": "string" }, { "name": "status", "type": "Status" } ] }, "references": [ { "name": "test.Status", "subject": "Status", "version": 1 } ] }When I try to load the Route schema via either
GetSchemaByVersionorGetSchema, 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.Statusin 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