VisualJsonEditor icon indicating copy to clipboard operation
VisualJsonEditor copied to clipboard

support items[] properties

Open fusionshen opened this issue 6 years ago • 4 comments

Hi,items[] properties seems not to be supported.

the JsonSchema4 file looks like this below { "type": "object", "properties": { "fixedItemsList": { "type": "array", "title": "A list of fixed items", "items": [ { "title": "A string value", "type": "string", "default": "lorem ipsum" }, { "title": "a boolean value", "type": "boolean" } ], "additionalItems": { "title": "Additional item", "type": "number" } } } } you can also find it in tab[Arrays] from https://mozilla-services.github.io/react-jsonschema-form/ It can't be opened in VisualJsonEditor.

Regards.

fusionshen avatar Oct 17 '18 03:10 fusionshen

Same issue to nestedList.

{ "type": "object", "properties": { "nestedList": { "type": "array", "title": "Nested list", "items": { "type": "array", "title": "Inner list", "items": { "type": "string", "default": "lorem ipsum" } } } } }

fusionshen avatar Oct 17 '18 09:10 fusionshen

Tuple types (items with different type per element) are currently not supported.

RicoSuter avatar Oct 17 '18 09:10 RicoSuter

What about nested arrays? Array-object is ok, but array-array is not, because the inner has no properties.

fusionshen avatar Oct 17 '18 10:10 fusionshen

Probably not, currently only the simplest scenarios are supported..

RicoSuter avatar Oct 17 '18 11:10 RicoSuter