Skip to content
/ j2u Public

Form generator based on JSON Schema

Notifications You must be signed in to change notification settings

Morgbn/j2u

Folders and files

NameName
Last commit message
Last commit date
Mar 4, 2025
Aug 15, 2024
Mar 4, 2025
Feb 17, 2023
Feb 17, 2023
Mar 4, 2025
Mar 9, 2023
Aug 15, 2024
Mar 4, 2025
Mar 4, 2025
Feb 8, 2023
Feb 8, 2023
Mar 4, 2025

Repository files navigation

J2U

JSON Schema based form generator built with vue 3

Installation

yarn add j2u # npm i j2u

Basic Usage

<JsonSchema :schema="schema" v-model="value"/>
schema = {
    type: 'object',
    properties: {
      aaa: { type: 'string', minLength: 1 },
      bbb: { type: 'boolean' },
      ccc: { type: 'string', enum: ['1', '2', '3'] },
      ddd: {
        type: 'object',
        title: '',
        properties: {
          a1: { type: 'string', minLength: 1, maxLength: 5 },
          b2: { type: 'boolean', default: true },
          ddd: {
            type: 'object',
            properties: {
              a1: { type: 'string', default: 'aaa' },
              b2: { type: 'boolean' }
            }
          }
        }
      }
    }
}

Credits