0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/api/v2
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
..
utils Added custom json-string format to AJV validator 2020-04-17 11:56:20 +01:00
actions.js
authentication.js
authors-public.js
config.js
db.js Changed backup service signature to be able to expand it 2020-02-10 12:41:39 +00:00
images.js
index.js
integrations.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
invites.js Fixed 500 error when deleting items that don't exist 2020-04-13 16:13:33 +01:00
mail.js
notifications.js
oembed.js Updated oembed requests to use consistent timeout and user-agent 2020-04-07 15:29:31 +01:00
pages-public.js
pages.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
posts-public.js
posts.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
preview.js
redirects.js
roles.js
schedules.js
session.js
settings-public.js
settings.js
site.js
slack.js
slugs.js Remove External Apps 2020-03-20 10:40:22 +00:00
tags-public.js
tags.js Fixed 500 error when deleting items that don't exist 2020-04-13 16:13:33 +01:00
themes.js
users.js Replaced use of Bluebird return method from knex code 2020-04-07 10:49:12 +01:00
webhooks.js Fixed 500 error when deleting items that don't exist 2020-04-13 16:13:33 +01:00