@roma219/vue-jsonschema-form

Input Form generator based on JSON Schema
2,370 52
Install
npm install @roma219/vue-jsonschema-form
Latest Version:0.1.16
Vue:2
License:MIT
Last Updated:Oct 28, 2023
Links: GitHub  ·  npm
Maintainer: roma219

Build Status Coverage Status dependencies Status Known Vulnerabilities Language grade: JavaScript last commit  

minified size

vue-jsonschema-form

JSON Schema based form generator built with Vue.js. Currently Work in Progress.

Full Guide and Examples

https://roma219.github.io/vue-jsonschema-form/guide/

Demo on Codesandbox

Installation

npm install @roma219/vue-jsonschema-form

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' }
            }
          }
        }
      }
    }
}

Version History

Version Released Vue License
0.1.16 ^2.6.10 MIT
0.1.15 ^2.6.10 MIT
0.1.14 ^2.6.10 MIT
0.1.13 ^2.6.10 MIT
0.1.11 ^2.6.10 MIT