Skip to content

Impossible to avoid transformation of one particular key in JSONAPI adapter #2036

@kurko

Description

@kurko

AMS: 0.10.4

Expected behavior vs actual behavior

At work, one endpoint accepts an attribute called metadata inside attributes, a freeform hash that clients send us. We want it to be returned exactly as it was sent.

Currently

Given the attribute sent is data.attributes.metadata: {"order_id": 123},
then the response is data.attributes.metadata: {"order-id": 123} (note the hyphen)
and it cannot be configured.

Expected:

Given the attribute sent is data.attributes.metadata: {"order_id": 123},
then the response should be data.attributes.metadata: {"order_id": 123}
when I configure AMS to ignore data.attributes.metadata transformation.

Additonal helpful information

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions