Ghost/core/test/unit/api/shared
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
..
serializers 🐛 Fixed missing "value" property for settings Admin API v2 2019-03-04 20:06:53 +01:00
util
validators Skiped 'all' validations for posts/tags endpoints 2019-02-15 12:19:49 +00:00
frame_spec.js Added apiType property to frame for {Content,Admin} API (#10487) 2019-02-13 16:59:10 +01:00
headers_spec.js
http_spec.js Added apiType property to frame for {Content,Admin} API (#10487) 2019-02-13 16:59:10 +01:00
pipeline_spec.js