mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
d3cc85c920
- This is a really specific piece of code related to validating models against our internal schema.js format - This doesn't make sense without a schema.js file - It does depend on the internal validator and validate tools - but those are used elsewhere too, and can reasonably be moved out of the codebase - I don't see schema.js moving out of the codebase any time soon. We can move the validator but it would be a class that requires schema via DI - For now my focus is on getting the data/validation tooling separated and making clear sense - Improving data/schema can come later :)
6 lines
253 B
JavaScript
6 lines
253 B
JavaScript
module.exports.tables = require('./schema');
|
|
module.exports.checks = require('./checks');
|
|
module.exports.commands = require('./commands');
|
|
module.exports.defaultSettings = require('./default-settings');
|
|
module.exports.validate = require('./validator');
|