All Projects → yourtion → Vue Json Ui Editor

yourtion / Vue Json Ui Editor

Licence: mit
Edit JSON in UI form with JSON Schema and Vue.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Json Ui Editor

Json Schema To Ts
Infer TS types from JSON schemas 📝
Stars: ✭ 261 (-33.42%)
Mutual labels:  json-schema, json, schema
Typedload
Python library to load dynamically typed data into statically typed data structures
Stars: ✭ 120 (-69.39%)
Mutual labels:  json-schema, json, schema
Plank
A tool for generating immutable model objects
Stars: ✭ 449 (+14.54%)
Mutual labels:  json-schema, json, schema
Newtonsoft.json.schema
Json.NET Schema is a powerful, complete and easy to use JSON Schema framework for .NET
Stars: ✭ 167 (-57.4%)
Mutual labels:  json-schema, json, schema
Schema Registry
Confluent Schema Registry for Kafka
Stars: ✭ 1,647 (+320.15%)
Mutual labels:  json-schema, json, schema
Vue Form Json Schema
Create forms using JSON schema. Bring your components!
Stars: ✭ 253 (-35.46%)
Mutual labels:  json-schema, json, schema
typescript-to-json-schema
Generate JSON schema from your Typescript sources
Stars: ✭ 54 (-86.22%)
Mutual labels:  schema, json-schema
element-schema-form
A schema-based element-ui form component for Vue2.x.
Stars: ✭ 31 (-92.09%)
Mutual labels:  schema, json-schema
ty
Here is a schema checker which can return well typed results. Tell your friends!
Stars: ✭ 21 (-94.64%)
Mutual labels:  schema, json-schema
fform
Flexibile and extendable form builder with constructor
Stars: ✭ 26 (-93.37%)
Mutual labels:  schema, json-schema
another-json-schema
Another JSON Schema validator, simple & flexible & intuitive.
Stars: ✭ 48 (-87.76%)
Mutual labels:  schema, json-schema
schema-shot
Framework-agnostic snapshot testing using "schema by example" for highly dynamic data
Stars: ✭ 34 (-91.33%)
Mutual labels:  schema, json-schema
Native
Generate a form using JSON Schema and Vue.js
Stars: ✭ 382 (-2.55%)
Mutual labels:  json, schema
openapi4j
OpenAPI 3 parser, JSON schema and request validator.
Stars: ✭ 92 (-76.53%)
Mutual labels:  schema, json-schema
joyce
Joyce is a highly scalable event-driven Cloud Native Data Hub.
Stars: ✭ 37 (-90.56%)
Mutual labels:  schema, json-schema
sf-java-ui
Json Schema Form java based library allow developers to define schema and form using field annotations
Stars: ✭ 23 (-94.13%)
Mutual labels:  schema, json-schema
magnet
A JSON/BSON schema generator
Stars: ✭ 16 (-95.92%)
Mutual labels:  schema, json-schema
Jsonschema
An implementation of the JSON Schema specification for Python
Stars: ✭ 3,474 (+786.22%)
Mutual labels:  schema, json-schema
Json Schema Validator
A fast Java JSON schema validator that supports draft V4, V6, V7 and V2019-09
Stars: ✭ 292 (-25.51%)
Mutual labels:  json-schema, json
Mimesis
Mimesis is a high-performance fake data generator for Python, which provides data for a variety of purposes in a variety of languages.
Stars: ✭ 3,439 (+777.3%)
Mutual labels:  json, schema

NPM version build status Test coverage David deps npm download npm license

json-editor

Greenkeeper badge DeepScan grade

Edit JSON in UI form with JSON Schema and Vue.js <json-editor> component.

ScreenShot

Install

npm install vue-json-ui-editor --save

Use

<template>
<json-editor ref="JsonEditor" :schema="schema" v-model="model">
    <button @click="submit">submit</button>
    <button @click="reset">Reset</button>
</json-editor>
</template>

<script>
const SCHEMA = {
  type: 'object',
  title: 'vue-json-editor demo',
  properties: {
    name: {
      type: 'string',
    },
    email: {
      type: 'string',
    },
  },
};
// import vue-json-ui-editor
import JsonEditor from 'vue-json-ui-editor';
export default {
  components: { JsonEditor },
  data: () => ({
    // init json schma file ( require('@/schema/newsletter') )
    schema: SCHEMA,
    // data
    model: {
      name: 'Yourtion',
    },
  }),

  methods: {
    submit(_e) {
      alert(JSON.stringify(this.model));
    },
    reset() {
      this.$refs.JsonEditor.reset();
    },
  },
};
</script>

More info on: Example-Subscription Schema: newsletter.json

props

  • schema Object (required) The JSON Schema object. Use the v-if directive to load asynchronous schema.

  • v-model Object (optional) default: [object Object] Use this directive to create two-way data bindings with the component. It automatically picks the correct way to update the element based on the input type.

  • auto-complete String (optional) This property indicates whether the value of the control can be automatically completed by the browser. Possible values are: off and on.

  • no-validate Boolean (optional) This Boolean attribute indicates that the form is not to be validated when submitted.

  • input-wrapping-class String (optional) Define the inputs wrapping class. Leave undefined to disable input wrapping.

data

  • default initial value: [object Object]

  • fields initial value: [object Object]

  • error initial value: null

  • data initial value: [object Object]

events

  • input Fired synchronously when the value of an element is changed.

  • change Fired when a change to the element's value is committed by the user.

  • invalid Fired when a submittable element has been checked and doesn't satisfy its constraints. The validity of submittable elements is checked before submitting their owner form, or after the checkValidity() of the element or its owner form is called.

  • submit Fired when a form is submitted

methods

  • input(name) Get a form input reference

  • form() Get the form reference

  • checkValidity() Checks whether the form has any constraints and whether it satisfies them. If the form fails its constraints, the browser fires a cancelable invalid event at the element, and then returns false.

  • reset() Reset the value of all elements of the parent form.

  • submit(event) Send the content of the form to the server

  • setErrorMessage(message) Set a message error.

  • clearErrorMessage() clear the message error.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].