Ghost/core/test/regression/api/v2/admin
kirrg001 449bae9a48 🐛 Fixed missing "value" property for settings Admin API v2
closes #10518

- we had a very generic logic to remove "unwanted" null values
  - copied from v0.1
  - originally added in 7d4107fec4
- this logic transformed: settings = [{key: 'key', value: null}] to [{key: 'key'}], which is wrong
- i've removed this generic logic completely, because i don't know which purpose it serves
- if there a specific case where we want to remove null values, we should either use the JSON schema or use a specific serializer for the target resource
- added tests to proof that settings API behaves as it should
- one test failed because we removed the isNull logic -> if you send published_at = null on a published post
  - the model layer has a piece of logic to force a date if you set published_at to null if the status is published
  - protected
2019-03-04 20:06:53 +01:00
..
db_spec.js Fixed regression tests that had to do with new error format 2019-02-25 22:19:51 +07:00
images_spec.js Combined /images* endpoints into /images/upload 2019-02-25 19:15:16 +07:00
notifications_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
posts_spec.js 🐛 Fixed missing "value" property for settings Admin API v2 2019-03-04 20:06:53 +01:00
redirects_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
settings_spec.js Added 'property' field to errors returned from API 2019-02-26 13:41:13 +07:00
slack_spec.js Reduced duplicated and slow regression tests 2019-02-05 01:20:16 +00:00
subscribers_spec.js Reduced duplicated and slow regression tests 2019-02-05 01:20:16 +00:00
users_spec.js Added 'property' field to errors returned from API 2019-02-26 13:41:13 +07:00
utils.js Updated Admin API key auth to require kid in header (#10538) 2019-02-26 11:03:47 +07:00