We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d348456 commit 11b019eCopy full SHA for 11b019e
src/renderer.js
@@ -2,6 +2,7 @@ import React from 'react';
2
import ReactDOM from 'react-dom';
3
import EditorState from './editorState';
4
import ReactJSONForm from './form';
5
+import DataValidator from './dataValidation';
6
7
8
export function FormInstance(config) {
@@ -78,6 +79,11 @@ export function FormInstance(config) {
78
79
this.getData = function() {
80
return this.data;
81
};
82
+
83
+ this.validate = function() {
84
+ let validator = new DataValidator(this.getSchema());
85
+ return validator.validate(this.getData());
86
+ };
87
}
88
89
0 commit comments