53b884ec2b
refs https://github.com/TryGhost/Team/issues/211 Previous code was creating a new ajv instance for each call, as well as loading the schemas, which are cached. This was causing a memory leak as ajv caches all schemas. We've replaced it with one instance of ajv, and conditionally loading/compiling the schemas if they haven't been seen before. |
||
---|---|---|
.. | ||
client@27a6bd98a8 | ||
server | ||
test | ||
index.js |