JSON:API meta link removal results in empty array, not empty object

Created on 22 January 2024, 5 months ago
Updated 28 March 2024, 3 months ago

Problem/Motivation

After enabling the link removal feature of this module, the beginning of the response looks like this:

    "jsonapi": {
        "version": "1.0",
        "meta": [],
        "parsed": true
    },

meta is replaced with an empty array.

However, according to the JSON:API spec (if I understand correctly), the value of meta must be an object.

Proposed resolution

Return an empty object OR, if meta has no other properties, remove meta as well.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan ptmkenny

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024