Skip to content

Commit 9c4ccd3

Browse files
authored
Update README.md (#311)
Add limitation of the unwrapping feature as per request from JAVA-280 issue.
1 parent 15468c7 commit 9c4ccd3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,10 @@ In addition to returning the Content in a fashion flexible for various use-cases
302302
> * Specifying a `value` for the `@ContentfulField`-annotation , will use the value of the similarly called field id instead of the name of the custom field.
303303
> * A `locale` can be used to specify a given locale of this entry. If no locale is given, the default locale will be used.
304304
> * `@ContentfulSystemField` is used for CDAEntries attributes (`sys.id`, etc) to be inserted.
305-
> * If another type is wanted to be transformed, it should have `@ContentfulEntryModel`-annotation specified similarly as in `Cat`.
305+
> * If another type is wanted to be transformed, it should have `@ContentfulEntryModel`-annotation specified similarly as in `Cat`.
306+
> * **Limitation on Unwrapping**: Using Unwrapping does not currently allow direct access to the raw JSON for rich text fields, as the SDK automatically transforms fields into the custom model structure. For cases where raw JSON is needed:
307+
> * Use the `rawFields` map in `CDAEntry` to directly access the unprocessed JSON of any field, including rich text.
308+
> * Alternatively, make a direct HTTP request to the Contentful API to retrieve the full raw JSON response.
306309
307310

308311
Select

0 commit comments

Comments
 (0)