ToolJet / ToolJet/ToolJet

JSONSchema form import fails to create child fields

Open
#16,432 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug exploring
Dominant language
JavaScript
Stars
40.9k
Forks
5.4k
Avg merge
2d 18h
Merged PRs (30d)
202

Description

Version Information

tooljet-ce:v3.20.160-lts

Environment

Docker

What is the expected behaviour?

Imported forms from JSONSchema should behave the same as those manually constructed or imported from raw data

What is the current behaviour?

JSONSchema imported forms don't have any children in the inspector and don't have any formData. They only have a .data property containing the field values. Fields cannot be edited in the editor.

How to reproduce the issue?
  1. Drag a form onto an app
  2. Select import from jsonschema and accept the example schema
  3. Observe that the fields do not show up in the inspector and cannot be individually edited
Screenshots or Screencast
Image
Please provide any traces or logs that could help here.

None relevant that I can see

Any possible solutions?

None, other than manually building forms or building from json data and editing

Can you identify the location in the driver source code where the problem exists?

No

If the bug is confirmed, would you be willing to submit a PR?

Maybe

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue through the form's “import from jsonschema” entry point and inspect how imported values are represented compared with manually constructed or raw-data forms. Done means imported fields appear as children in the inspector, can be edited individually, and expose formData rather than only a data property.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.