guardian / content-api-scala-client

A Scala client library for the Guardian's Content API
Apache License 2.0
40 stars 16 forks source link

Add keyTakeaways as a displayHint #397

Closed Georges-GNM closed 1 month ago

Georges-GNM commented 10 months ago

What does this change?

As part of the template OKR, we'll be using the displayHint logic to indicate to platforms that a certain article is specifically a key takeaways piece; this adds the relevant logic to the capi client which frontend pulls from.

How to test

The updated test suite should be passing; further down the line (with subsequent platform PRs) we should be able to distinguish between a standard/immersive/numbered list display and a specific key takeaway one.