schema-registry-ui icon indicating copy to clipboard operation
schema-registry-ui copied to clipboard

Issue creating and reusing custom types

Open psmod2 opened this issue 7 years ago • 1 comments

Hi,

Using the Schema UI - is it possible to create a custom type which I can reuse?

So say I have the following:

{
    "type": "record",
    "name": "TestSchema",
    "namespace": "com.test",
    "fields": [
        {
            "name": "title",
            "type": {
                "type": "record",
                "name": "CustomType",
                "fields": [
                    {
                        "name": "value",
                        "type": "string"
                    },
                    {
                        "name": "secondLine",
                        "type": "string"
                    }
                ]
            }
        },
        {
            "name": "subtitle",
            "type": "CustomType"
        }
    ]
}

On validating the SchemaUI will complain that it does not know CustomType.

Even if I create a new schema and then try to reference the type using namespace.name doesn't work.

Is it possible to do this using Schema UI - or would i have to duplicate each time I want to use that specific type.

Thanks.

psmod2 avatar Apr 23 '18 02:04 psmod2

@psmod2 did you find a solution for the custom type?

itayB avatar May 17 '21 20:05 itayB