brutusin / brutusin/json-forms

Issue with oneOf

Open
#102 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
618
Forks
171
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.