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

support for oneOf, anyOf based on JSON Schema Draft 4 #4

Open
gpetrov opened this issue Jan 16, 2015 · 3 comments
Open

support for oneOf, anyOf based on JSON Schema Draft 4 #4

gpetrov opened this issue Jan 16, 2015 · 3 comments

Comments

@gpetrov
Copy link

gpetrov commented Jan 16, 2015

Any plans or progress on working for support of oneOf, anyOf, allOf and not directives based on JSON Schema Draft 4?

@ulion
Copy link
Owner

ulion commented Jan 17, 2015

the validation library support those, but how would jsonform to render form
items with such types?

2015-01-16 21:48 GMT+08:00 George Petrov notifications@github.com:

Any plans or progress on working for support of oneOf, anyOf, allOf and
not directives based on JSON Schema Draft 4?


Reply to this email directly or view it on GitHub
#4.

Ulion

@gpetrov
Copy link
Author

gpetrov commented Jan 17, 2015

well easy, justlike the https://github.com/jdorn/json-editor implemented them. When you see a oneOf option for example you render an extra drop down to let the user choose the type first and then render the right oneof group. Or even easier is to provide a link of the type to other field and then dependng of its value render the oneof

@ulion
Copy link
Owner

ulion commented Jan 17, 2015

Got it, oneOf is somehow like the type selectfieldset we currently
have, we can support that if so.

The most interesting feature I saw from json-editor is the arraytable,
which there was ever some jsonform branch tried to do that. if someone
can pick it up, it will be great.

json-editor also support the change event driven template values, and
different themes to use with different ui library. I have to say, it
must has some better design there we can learn. currently jsonform is
tightly bound with bootstrap and the template part of code is quite
not easy to do with.

2015-01-17 18:59 GMT+08:00 George Petrov notifications@github.com:

well easy, justlike the https://github.com/jdorn/json-editor implemented
them. When you see a oneOf option for example you render an extra drop down
to let the user choose the type first and then render the right oneof group.
Or even easier is to provide a link of the type to other field and then
dependng of its value render the oneof


Reply to this email directly or view it on GitHub.

Ulion

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

2 participants