objectx
v2.5.2
Published
validation extention built into javascript Object
Downloads
1
Maintainers
Readme
ObjectX
Validation integration with js Object
Api :
import Objectx from '../objectx-utils.js';
import base from '../sample/base.json';
import addressSchema from '../sample/addressSchema.json';
import testData from '../sample/testData.json';
const testObj = new Objectx([base, addressSchema])
try {
testObj.value = testData
} catch (err) {
console.log("Caught error:", err);
} finally {
console.log(testObj.value);
}