json-forms icon indicating copy to clipboard operation
json-forms copied to clipboard

Issue with oneOf

Open ychyrski opened this issue 8 years ago • 1 comments

Given schema provided at http://brutusin.org/json-forms/#7 and Initial data

{ "p1": "test", "p2": true }

Generated form still creates single element with dropdown in order to choose the object type and then after the right one has been choosen shows values from given Initial data.

I think it is possible to validate data agianst subschemas in oneOf and either shorten the dropdown list (if there are multiple matches) or resolve particular schema which matches given data

ychyrski avatar Sep 12 '17 13:09 ychyrski

Any thoughts?

ychyrski avatar Oct 19 '17 08:10 ychyrski