diff --git a/package.json b/package.json index 7005559..4edda59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json-schema-editor-vue", - "version": "2.0.3", + "version": "2.0.4", "author": "zhangyq", "description": "A json-schema editor of high efficient and easy-to-use, base on Vue", "keywords": [ diff --git a/packages/json-schema-editor/main.vue b/packages/json-schema-editor/main.vue index fbf9c29..e216362 100644 --- a/packages/json-schema-editor/main.vue +++ b/packages/json-schema-editor/main.vue @@ -233,7 +233,7 @@ export default { }, methods: { parseCustomProps () { - const ownProps = [ 'type', 'title', 'properties', 'items', ...Object.keys(this.advancedAttr)] + const ownProps = [ 'type', 'title', 'properties', 'items','required', ...Object.keys(this.advancedAttr)] Object.keys(this.pickValue).forEach(key => { ownProps.indexOf(key) === -1 && this.confirmAddCustomNode({ key: key, value: this.pickValue[key] }) })