question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-jsonschema-form to generate a form itself

See original GitHub issue

Prerequisites

Description

Is there a schema that produces a form to generate another form JSON schema? Simmilar to issue #1276, however the owner of that issue vanished.

i.e. a meta jsonschema form that creates other jsonschema forms

Steps to Reproduce

make and run this app:

iconst Form = JSONSchemaForm.default;
const schema = {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://json-schema.org/draft-07/schema#",
    "title": "Core schema meta-schema",
...
};
const uiSchema = {
  description: {
    "ui:widget": "textarea"
  }
};

ReactDOM.render(<Form schema={schema} uiSchema={uiSchema}/>, 
             document.getElementById("main"));

https://jsfiddle.net/jsToby/u98aygc6/

Expected behavior

A form that allows the user to generate a fully valid JSONSchema which produces a form.

Actual behavior

Inputting the definition provided on http://json-schema.org creates the following error:

Core schema meta-schema
Unsupported field schema for field root: Unknown field type object,boolean.

Version

1.8.0

You can usually get this information in your package.json or in the file URL if you’re using the unpkg one.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
domharringtoncommented, Sep 16, 2019

@GitToby we’re using my fork in production at ReadMe to generate dynamic forms from user’s OAS files. You can see this in action here: https://preview.readme.io/.

Would love to get it merged in so we don’t have to rely on my fork and so others can use it.

0reactions
stale[bot]commented, Jul 22, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

<Form /> props - react-jsonschema-form documentation
This prop allows passing in custom errors that are augmented with the existing JSON Schema errors on the form; it can be used...
Read more >
React JSON Schema Form - Medium
RJSF generates React form based on JSON schema. It will capture the data as a JSON object. It also provides tools like form...
Read more >
Chris Cauley - React JSON Schema Form - YouTube
Do you find yourself writing the same form over and over again? RJSF allows you to define schema instead writing out the form...
Read more >
React Json Schema Form - Val's Tech Blog
Behold, the React JSON Schema Form, or simply RJSF. Originally started and built as an Open Source project by the Mozilla team. Evolved...
Read more >
How to Integrate “React JSON Schema Form” into a Redux ...
React JSON Schema form is a technology for building forms with React. It takes the approach of defining the form itself separate from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found