infinum/kotlin-jsonapix

Meta, links, and errors Inside Included Block are ignored

Opened this issue · 2 comments

Issue: Ignoring meta, links, and errors Inside included Block

Description

After the PR has been merged, the issue of crashes caused by meta fields inside the included block has been resolved. However, the underlying problem persists in that the library is currently ignoring meta, links, and errors fields when they appear inside the included block.

Current Behavior

  • meta, links, and errors in the included Block:
    • The library is currently configured to ignore meta, links, and errors fields when they are found inside the included block.
    • While this prevents crashes from occurring, it means that any data within these fields is not being processed or utilized, which could lead to incomplete data handling in applications.

Expected Behavior

The library should consistently process meta, links, and errors fields across all parts of the JSON:API structure, including within the included block. Specifically:

  • These fields should not be ignored within the included block.
  • If these fields are present, they should be properly deserialized and handled just like they are in the root or data blocks.
KCeh commented

@thisAAY can we close this?

I will resume working on it, after vacation