0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api/v2/utils
Fabien O'Carroll 53b884ec2b
Refactored json-schema to use one instance of ajv (#10746)
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.
2019-05-15 13:28:10 +02:00
..
serializers 🎨 Allowed protocol overwrite for canonical URLs (#10729) 2019-05-06 15:27:54 +02:00
validators Refactored json-schema to use one instance of ajv (#10746) 2019-05-15 13:28:10 +02:00
index.js Added comments for Ghost API 2019-05-06 14:49:25 +02:00
permissions.js Added comments for Ghost API 2019-05-06 14:49:25 +02:00