-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
Hi there,
We've been using Sway in our project, and during memory profiling, we've found the following line that's taking a lot of time (in lib/helper.js)
module.exports.validateAgainstSchema = function (validator, schema, value, schemaPath, isResponse, options) {
schema = _.cloneDeep(schema); // Clone the schema as z-schema alters the provided document
I'm curious as to why z-schema alters the provided schema, could you provide an example where schema is modified? We are looking for a way to either improve deep clone performance or get rid of it
Thank you very much
Metadata
Metadata
Assignees
Labels
No labels