jsonform
jsonform copied to clipboard
ZSchema required?
I understand ZSchema-browser supposedly does some json-validation. However, I have disabled this JS file and I can't see any difference. The jsonform still validates successfully on submit. Is it an optional module? I am curious because it does after all weigh in at 80kb+.
then you may just skipped the json schema validation.
2015-10-31 13:31 GMT+08:00 Karl Ward [email protected]:
I understand ZSchema-browser supposedly does some json-validation. However, I have disabled this JS file and I can't see any difference. The jsonform still validates successfully on submit. Is it an optional module? I am curious because it does after all weigh in at 80kb+.
— Reply to this email directly or view it on GitHub https://github.com/ulion/jsonform/issues/26.
Ulion
you can use browser's develop console setup break point in formTree.prototype.validate function, then see how does it go when doing the validation.
2015-10-31 20:09 GMT+08:00 Ulion [email protected]:
then you may just skipped the json schema validation.
2015-10-31 13:31 GMT+08:00 Karl Ward [email protected]:
I understand ZSchema-browser supposedly does some json-validation. However, I have disabled this JS file and I can't see any difference. The jsonform still validates successfully on submit. Is it an optional module? I am curious because it does after all weigh in at 80kb+.
— Reply to this email directly or view it on GitHub https://github.com/ulion/jsonform/issues/26.
Ulion
Ulion
Excuse my ignorance, but doesn't jsonform generally validate with the following? ... or is there some zschema-specific implementation?
form_object.onSubmit = function (errors, values) {
if(errors) {
console.log('Errors');
console.dir(errors);
} else {
console.log('Success');
console.dir(values);
}
}
Thanks for your efforts with jsonform btw.
no, jsonform does not do the validation work, but it will try to find loaded json schema validator to do that.
2015-11-01 13:36 GMT+08:00 Karl Ward [email protected]:
Excuse my ignorance, but doesn't jsonform generally validate with the following? ... or is there some zschema-specific implementation? form_object.onSubmit = function (errors, values) { if(errors) { console.log('Errors'); console.dir(errors); } else { console.log('Success'); console.dir(values); } }
Thanks for your efforts with jsonform btw.
— Reply to this email directly or view it on GitHub https://github.com/ulion/jsonform/issues/26#issuecomment-152795078.
Ulion