diff --git a/lib/schematype.js b/lib/schematype.js index dc69a8a03f7..f66102f819f 100644 --- a/lib/schematype.js +++ b/lib/schematype.js @@ -1407,6 +1407,8 @@ SchemaType.prototype.clone = function() { const schematype = new this.constructor(this.path, options, this.instance); schematype.validators = this.validators.slice(); schematype.requiredValidator = this.requiredValidator; + schematype.getters = this.getters.slice(); + schematype.setters = this.setters.slice(); return schematype; };