You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An entity with an attribute named type is legal json-api, and therefore Japx should be able to decode a resource with a field named type
Actual Behavior
Japx already requires an instance variable on entities named type that is assigned to the entity-level type, and the parser pulls all attributes up and therefore creates a conflict between type on the entity level and a type inside attributes
Steps to Reproduce the Problem
Prepare a json-api response containing an entity with an attribute named type
Decode the response with JapxKit.Decoder
See that the type attribute is overwritten by the entity-level type
Specifications
Version:
Platform:
Subsystem:
The text was updated successfully, but these errors were encountered:
Expected Behavior
An entity with an attribute named
type
is legal json-api, and therefore Japx should be able to decode a resource with a field namedtype
Actual Behavior
Japx already requires an instance variable on entities named
type
that is assigned to the entity-leveltype
, and the parser pulls all attributes up and therefore creates a conflict betweentype
on the entity level and atype
insideattributes
Steps to Reproduce the Problem
type
JapxKit.Decoder
type
attribute is overwritten by the entity-leveltype
Specifications
The text was updated successfully, but these errors were encountered: