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 96a0f64 commit f378250Copy full SHA for f378250
src/vfjs-global-mixin/methods/vfjs-helpers/index.js
@@ -249,6 +249,14 @@ const vfjsHelpers = {
249
250
return value;
251
},
252
+ vfjsHelperSchemaHasErrors(schema, model) {
253
+ const value = typeof model === 'undefined' ? this.getVfjsModel() : this.getVfjsFieldModel(model);
254
+
255
+ this.ajv.validate(schema, value);
256
+ const oldErrors = this.ajv.errors ? this.ajv.errors : [];
257
258
+ return oldErrors.length === 0;
259
+ },
260
getVfjsFieldsModels(fields, fieldModels = []) {
261
return fields.reduce((models, { children = [], model }) => {
262
if (model) {
0 commit comments