Ghost/core/server/api/v2/utils/serializers
Naz Gargol 97ea664d4d
🐛 Fixed empty html/plaintext fields for narrow fields parameter (#11505)
refs https://forum.ghost.org/t/plaintext-value-is-empty-using-the-api/10537

- The `plaintext`/`html` fields were empty because `visibility` attribute was not present in response body on output serialization stage. `visibility` field is always needed for content gating to work as expected 
- Added `visibility` field in the input serialization layer as it wouldn't be possible to use content gating if added on model layer through `defaultColumnsToFetch`
- Added test cases covering a bug
2020-01-08 14:43:21 +01:00
..
input 🐛 Fixed empty html/plaintext fields for narrow fields parameter (#11505) 2020-01-08 14:43:21 +01:00
output 🐛 Fixed plaintext field being added as empty property when member post is requested 2020-01-06 14:59:30 +01:00
index.js Added tiny framework to support multiple API versions (#9933) 2018-10-05 00:50:45 +02:00