brutusin / json-forms

JSON Schema to HTML form generator, supporting dynamic subschemas (on the fly resolution). Extensible and customizable library with zero dependencies. Bootstrap add-ons provided
http://brutusin.org/json-forms
Apache License 2.0
607 stars 168 forks source link

Recursive definitions not supported #94

Open stringfellow opened 7 years ago

stringfellow commented 7 years ago

The JSON schema spec allows for self-referential schemas with $ref - at the moment this causes an error. See fiddle here: https://jsfiddle.net/4gk0bv2z/

OYE93 commented 5 years ago

hi did you solve this problem?

stringfellow commented 5 years ago

No unfortunately.. I switched to react-jsonschema-form by mozilla.. seems to be very well supported

OYE93 commented 5 years ago

hah, ok, thanks for your reply, I think I should also switch to react-jsonschema-form, it seems more reliable. could you give me an example about array $ref in react-jsonschema-form that you switch from this json-forms, many thanks!! :)

OYE93 commented 5 years ago

Hi @stringfellow another question, did react-jsonschema-form can complete dynamic selection like http://brutusin.org/json-forms/ this page shows, thanks a lot!! :)

epicfaace commented 5 years ago

@OYE93 react-jsonschema-form supports a limited version of dynamic schemas, see https://react-jsonschema-form.readthedocs.io/en/latest/dependencies/#dynamic

OYE93 commented 5 years ago

@epicfaace thanks, I'll try it, hope it could be helpful.