0.0.4 • Published 3 years ago

@almuz/vue-jsonschema v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

@almuz/vue-jsonschema

JSON Schema based form generator built with Vue.js. This is fork of https://github.com/roma219/vue-jsonschema-form Changes: packages update, vuelidate deleted

Full Guide and Examples

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

Demo on Codesandbox

Installation

npm i @almuz/vue-jsonschema

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

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago