jdorn / json-editor

JSON Schema Based Editor
MIT License
5.8k stars 1.07k forks source link

Changing schema structure (or editors) dynamically #551

Open JakubKahovec opened 8 years ago

JakubKahovec commented 8 years ago

Hi, you've done a great job creating such an excellent editor. Is it possible to somehow change the schema structure or the editors dynamically ? For instance depending on a combo box value there would be either two fields or three fields (with different keys and titles).

Thank you.

Jakub

hutch120 commented 8 years ago

Duplicate: https://github.com/jdorn/json-editor/issues/315

gfb107 commented 8 years ago

Try using oneOf, as i've shown in the comments for #315