Commit b517ea2
Rasmus Iversen
Array of objects with oneOf prop
Fixing a bug where having `oneOf` prop on an object, in an array, causes json-forms.js to throw a hasOwnProperty of null exception. Code to reproduce:
"resources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "object",
"oneOf": [
{
"type": "array",
"title": "External stylesheet",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
}
}
},
{
"title": "Inline stylesheet",
"type": "array",
"items": {
"type": "object",
"properties": {
"selector": {
"type": "string"
},
"css": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"required": true
},
"value": {
"type": "string",
"required": true
}
}
}
}
}
}
}
]
}
}
}
}1 parent 22a9a9b commit b517ea2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
0 commit comments