Bug in editor about default value for a json attribute with an array field

Hi!
When I set default to json attribute with an array among its properties, the editor ignores array: true and show an error: “field items needs to be a string”. I suppose, it’s a bug. Isn’t it?

Teleport.attributes.add('temp', {
    type: 'json',
    schema: [
        {
            name: "items",
            type: "string",
            array: true,
            // default: ["a", "b"],
        }
    ],
    default: {
        items: ["c", "d"],
    }
});

https://playcanvas.com/editor/scene/1586887

@Mark_Lundin - any idea on this one?

Try this @alex.panoptik

Teleport.attributes.add('temp', {
    type: 'json',
    schema: [
        {
            name: "items",
            type: "string",
            array: true,
            default: ["a", "b"],
        }
    ]
});

@Mark_Lundin
That’s a minimal example to demonstrate the bug. In real life I need something like this:

Teleport.attributes.add('temp', {
    type: 'json',
    schema: [
        {
            name: "key",
            type: "string",
        },
        {
            name: "items",
            type: "string",
            array: true,
        }
    ],
    array: true,
    default: [{
        key: "q",
        items: ["a", "b"],
    }, {
        key: "u",
        items: ["c", "d"],
    },]
});

And that doesn’t work.

Yep, gotya. This isn’t supported at the moment

:cry: