Closed Rasive closed 8 years ago
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:
oneOf
"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 } } } } } } } ] } } } }
Thanks!
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: