Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
contentMediaType: 'text',
else: {},
if: {},
then: {}
}
const c: JSONSchema7Definition = false;
}
// Class
class Schema7 implements JSONSchema7 {
}
let result = validate({}, { $id: 'schema-id' });
mustBeValid(result);
result = checkPropertyChange({ foo: 'bar' }, { $id: 'schema-id' }, 'foo');
value: function(name, value){
var propDef = properties && properties[name];
if(propDef){
mustBeValid(checkPropertyChange(value, propDef, name));
if(propDef.set){
value = propDef.set.call(this, name, value);
}
}
sourceClass.get(source.getId ? source.getId() : source.id).set(name, value);
this[name] = value;
},
enumerable: false