Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support items[] properties #25

Open
fusionshen opened this issue Oct 17, 2018 · 4 comments
Open

support items[] properties #25

fusionshen opened this issue Oct 17, 2018 · 4 comments

Comments

@fusionshen
Copy link

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
Copy link
Author

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"
}
}
}
}
}

@RicoSuter
Copy link
Owner

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

@fusionshen
Copy link
Author

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

@RicoSuter
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants