Ghost/core/server/data/schema
Hannah Wolfe 1688b17c49
Refactored + cleaned up validation tools
- General code cleanup
- Removed unused notContains rule
- Swapped custom empty rule for builtin isEmpty rule
- Dropped usage of .extend on validator, as this was removed 2 years ago!
   - This will allow us to upgrade the validator dependency to a much newer version
- Changed our internal validator module to only expose the functions we use.
   - This gives us a clearer Public API
   - It makes it easier to see if we are affected by changes in validator
   - It's still easy to add another validator, we just have to update what we require
   - We can potentially use this to make smaller builds esp for client-side usage
   - Once ripped out into a module we can use ES imports :D
- Rejigged and _slightly_ improved the tests
2021-06-15 15:17:20 +01:00
..
clients Fixed "no-shadow" linting error in server/data modules (#12288) 2020-10-20 11:56:46 +13:00
fixtures Fixed editors not being able to read labels when assigning member segments (#12934) 2021-05-07 10:51:44 +01:00
checks.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
commands.js Fixed JSDoc for DB helper functions 2021-06-11 16:03:42 +01:00
default-settings.json Added extra newsletter settings 2021-06-07 16:31:50 +01:00
index.js Moved schema validator into the schema module 2021-06-15 11:54:34 +01:00
schema.js Added posts_meta.feature_image_{alt,caption} columns (#13030) 2021-06-10 20:35:56 +01:00
validator.js Refactored + cleaned up validation tools 2021-06-15 15:17:20 +01:00