0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/unit
Daniel Lockyer 8853067830 Added custom json-string format to AJV validator
no issue

- the value of `mobiledoc` when submitting a page/post via the API must
  be JSON, but we don't validate this
- this results in url-utils throwing an error, which ends up being a 500
- this commit adds a custom format to AJV to validate it is valid JSON
- also updates tests with bad JSON - 'a'
2020-04-17 11:56:20 +01:00
..
adapters Refactored existing adapters to use adapter-manager 2020-04-05 21:13:47 +02:00
api Added custom json-string format to AJV validator 2020-04-17 11:56:20 +01:00
apps Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
config Refactored existing adapters to use adapter-manager 2020-04-05 21:13:47 +02:00
data 🐛 Fixed importer always erroring 2020-04-15 13:24:43 +01:00
helpers Improved helper index, use glob to read directory 2020-04-10 13:08:41 +01:00
lib Switched to extracted @tryghost/mobiledoc-dom-renderer package 2020-04-08 18:27:12 +01:00
models Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
services Moved non-helper code out of helpers 2020-04-10 12:27:43 +01:00
web Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00