Ghost/core/server/api/v3/utils
Naz d9ddc2db6a Added extra validation for some settings of array type
refs https://github.com/TryGhost/Team/issues/754
refs a7dec233ba

- Additional validation protects from problems like the ones in refed commit from even getting through to the database.
- At the moment only used notificatons and couple more settings to ensure they are arrays when passed into the API. This is to avoid making big change in settings straight away - this is a problematic area which needs cautious approach.
- Ideally in the future the list of settings to check the "array" type (and other types) should be automatically generated based on the default-settings.json (or whatever way we define settings in the db a that moment)
- There's an ugly code-tripplication going on in this change. This is a separate topic that will be addressed once we work on API cleanup.
2021-06-28 14:26:18 +04:00
..
serializers Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
validators Added extra validation for some settings of array type 2021-06-28 14:26:18 +04:00
index.js 💡 Split the v3 endpoint from the canary endpoint 2021-01-22 16:32:03 +13:00
permissions.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00