Open baltpeter opened 3 years ago
Might be interesting for datenanfragen/company-json-generator#17 as well
Another option that I have not yet evaluated: https://github.com/json-editor/json-editor
Yet another contender: https://github.com/iway1/react-ts-form (shouldn't be too hard to automatically generate a zod schema from our JSON schema).
I've just had a look at the docs and demo of react-jsonschema-form. Looks pretty cool, seems well maintained, and from what I've seen, it supports everything we're looking for.
I haven't really looked closer into json-editor/json-editor because that is not React-based and I would definitely prefer something with native React support. Our previous approach with brutusin/json-forms really wasn't clean.
I haven't really looked into react-ts-form either. At first glance, it seems less comprehensive than react-jsonschema-form.
brutusin/json-forms is unmaintained, but there are 2 active maintained forks: https://github.com/saicheck2233/json-forms (106 commits ahead of origin) https://github.com/WSUCEG-7140/Team-Alpha (141 commits ahead of origin)
I did not look into these 3 packages, so i do not want to judge about "cleanness of this approach", but i dislike that version string is at 0.0.0 and no releases published at npmjs.com.
Maybe an option, if we do not want to change much...
For the record, some more relevant discussion on why brutusin/json-forms is not an option: https://github.com/datenanfragen/company-json-generator/issues/17
But I have also already started (and mostly completed) work on a custom React JSON schema form component that works really well for our purposes. Unfortunately, there are too many things on my plate right now, so I haven't found the time to publish it yet.
Unfortunately, brutusin/json-forms has been unmaintained for a while and we're seeing a number of issues in our usage. I have recently discovered react-jsonschema-form which may be a good alternative.