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

Issue with oneOf #102

Open
ychyrski opened this issue Sep 12, 2017 · 1 comment
Open

Issue with oneOf #102

ychyrski opened this issue Sep 12, 2017 · 1 comment

Comments

@ychyrski
Copy link

ychyrski commented Sep 12, 2017

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

Any thoughts?

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

No branches or pull requests

1 participant