Confluent Platform 5.5.0 support Schema References, the ability of a schema to refer to other schemas.
Here's a blog post that goes a bit into detail.
The schema you want to register contains a reference:
{
"namespace": "my.little.schema",
"name": "Test",
"type": "record",
"fields": [
{
"name": "name",
"type": {
"name": "Name",
"type": "some.other.schema" <====
}
}
]
}
The json you sent to the SR contains a references section, listing all referenced schemas with versions:
{
"schema": "...",
"references": [
{
"name": "some.other.schema",
"subject": "name",
"version": 42
}
]
}
Confluent Platform 5.5.0 support Schema References, the ability of a schema to refer to other schemas.
Here's a blog post that goes a bit into detail.
The schema you want to register contains a reference:
{ "namespace": "my.little.schema", "name": "Test", "type": "record", "fields": [ { "name": "name", "type": { "name": "Name", "type": "some.other.schema" <==== } } ] }The json you sent to the SR contains a
referencessection, listing all referenced schemas with versions:{ "schema": "...", "references": [ { "name": "some.other.schema", "subject": "name", "version": 42 } ] }