JSON:API Extras conflicts with resource type customizations

Created on 22 March 2020, about 5 years ago
Updated 18 October 2023, over 1 year ago

Hello,

When I try to add an item to the current user wishlist I get this error:

The provided type (product-variation--default) does not match the destination resource types (commerce_product_variation--default).

Steps to reproduce:

Endpoint to add: /jsonapi/wishlist/add

My resource (data from /jsonapi/commerce_product_variation/default):

"type": "commerce_product_variation--default",
"id": "974f83e9-bb77-47cb-af56-f7c4f1fe1793",

Data body POST:

{
  "data": [
    {
      "type": "product-variation--default",
      "id": "974f83e9-bb77-47cb-af56-f7c4f1fe1793",
      "meta": {
        "quantity": 1
      }
    }
  ]
}
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇵🇹Portugal introfini

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024