Left operand for deep comparison.
Right operand for deep comparison.
Complements default values for all (nested) properties and array's of objects of a given object (POJO/JSON).
``` const schema: any = { type: 'object', properties: { foo: { type: 'object', properties: { bar: { type: 'string', default: 'moep' }, baz: { type: 'string' } } } } };
const object: any = { }; JsonSchema.complement(object, schema); console.log(object.foo.bar); // should exist and output 'moep'
Object to complement default values for.
Schema used for validation.
Validates if an object (POJO/JSON) adheres to a specific structure using a JSON schema.
Object to validate.
JSON schema used for validation.
Schema references for types etc.
Deep comparison of two objects. It returns whether or not changes have been found (returns true) or objects seem to be equal w.r.t. to their property structure and respective values (returns false). All changes that are found will be passed to the alteration lookup.