eclipsesource/jsonforms-editor

There is fundamental flaw in this editor, it is not capable of editing json-forms

Opened this issue · 3 comments

Motivation
Looking for Json-Forms editor / designer
But this (at least the netify demo) is not capable of editing the form, only styling already existing form definition.
Projects claims to be able to edit the schema, but it is just text editor. This is no more "json forms schema" editor than windows notepad.

Solution
A JSON-Form editor / designer
To be JSON-Forms "editor" it needs to be able to WYSIWYG edit the JSON FORMS. Which is the schema, not just the ui-schema. The ui-scema if mostly irrelevant, it is just styling the json-forms.

You do not drag and drop fields into the form, but field types; String , Number, Data, boolean, select.
And when you drop they filed type to form you give it id and title and that action adds them to schema. (not ui schema)

And the editor / designer should produce the json-forms schema and ui-schema as the result. (And maybe even data for default values)

For example :
http://www.alpacajs.org/demos/form-builder/form-builder.html

or
https://aws1.discourse-cdn.com/standard17/uploads/flowable/original/1X/be075208ec9a5cc76830b80300efaa30afd80a84.png

Alternatives
It is fine if this is just a styler, but then name and description should not make claims of this being EDITOR.

Additional context
Also the lerna is just horrible. It makes any project pretty much un-usable. Pretty much any corporation has blocked the level of system and network access lerna needs from poweshell. We evaluated this software in two different companies and countries and both were unable to run lerna.

I think you mixed up two different standards:

  • JSON Schema which provides a standardized way to define/format/validate JSON data in general.
  • JSON Forms which provides a way to format and display existing JSON Schemas as forms.

So this software is actually capable of editing JSON Forms in a WYSIWYG way; what you're asking for is an editor capable of editing JSON Schemas and JSON Forms at the same time.

I'm not aware of an WYSIWYG editor supporting both standards, though there are a few JSON Schema only editors (all without WYSIWYG) listed on the JSON Schema implementations website:

There are also other JSON Schema editors on the web:

  • JSON Editor, has WYSIWYG capabilities but is more of a library than a standalone product. I guess it has an internal "form format" but I'm not sure if it is the same as the actual JSON Form standard.
  • JSON Schema Builder, has WYSIWYG capabilities but seems a bit outdated

"JSON Forms" consists of schema, ui-schema and data and ONLY together they are "JSON Forms"

If you want to make "JSON Forms - Editor" it must be able to edit all three of them; schema, the ui-schema and (default) data. Otherwise it is just "UI-schema editor of/for JSON Forms".

It is fine tool, just that IMHO it is a bit ambitions and misleading to call it "Forms editor".

Hi @mikezerosix,
you are right that in an ideal world the Editor would allow to also create the schema by dropping schema types on the editor area. We are happy to accept a contribution for such a feature ;-) . Currently you need to create the schema text based, but you get auto completion :-).

Furthermore there is a tool shared in the discourse group that does this: https://jsonforms.discourse.group/t/advanced-visual-form-builder-for-react/756

Best