Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Create a form from a json-schema? [closed]

How to create form from JSON Schema?

I am writing code in JavaScript and jquery. With this template part like Form I am creating this with haml and adding this in js file. For backend I am using python. I am using Django framework.

So I got some links for create form from JSON Schema.

Reference link : http://neyric.github.io/inputex/examples/json-schema.html

In my Form : Input elemets : textboxes, textarea, select list, submit and cancel buttons are present.

So I want to ask is creating form with JSON schema is feasible or not? If yes then, can you provide some good links?

like image 707
eegloo Avatar asked Nov 27 '13 11:11

eegloo


People also ask

What is JSON Schema form?

Philosophy. react-jsonschema-form is meant to automatically generate a React form based on a JSON Schema. If you want to generate a form for any data, sight unseen, simply given a JSON schema, react-jsonschema-form may be for you.

What is $id in JSON Schema?

$id is a reserved keyword. It serves for: Declaring an identifier for the schema or subschema. Declaring a base URL against which $ref URLs are resolved.

What is JSON Schema validation?

JSON Schema validation asserts constraints on the structure of instance data. An instance location that satisfies all asserted constraints is then annotated with any keywords that contain non-assertion information, such as descriptive metadata and usage hints.


1 Answers

I've been looking for the same, and turns out there are some good options. These are the best libraries I could find on GitHub:

  • JSON Editor (plain JS) (demo)

  • Angular Schema Form (AngularJS) (demo)

  • React JSONSchema Form (React) (demo)

like image 54
Ognjen Avatar answered Oct 08 '22 11:10

Ognjen