Ghost/core/server/api/canary/utils/serializers
Kevin Ansfield 4e724b6451
Fixed order of flatten/clean operations in posts output serializers (#13038)
no issue

`post.clean()` implementation was expecting a flat structure representing final API output but was being called before the flatten operation for `posts_meta` meaning the structure looked like `attrs.posts_meta.property` instead

- adjusted order in output serializers to call `clean()` after flattening the `posts_meta` object
- in `v2` output serializer, moved removal of properties from the serializer into `clean()` for consistency
2021-06-10 15:14:02 +01:00
..
input Added labs setting input validation 2021-06-08 02:18:17 +12:00
output Fixed order of flatten/clean operations in posts output serializers (#13038) 2021-06-10 15:14:02 +01:00
index.js 💡 Added canary api endpoint 2019-08-09 20:46:49 +05:30