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
At the moment the resource objects support conditional attributes in the attributes and meta values. We should also add support for conditional relationships.
To do this, we need to support (in the encoder) having relations wrapped in either a conditional attribute or conditional attributes object. So the syntax on the resource would be:
Probably we should rename the ConditionalAttr and ConditionalAttrs classes to ConditionalField and ConditionalFields considering we're now not just using them in attributes.
The text was updated successfully, but these errors were encountered:
At the moment the resource objects support conditional attributes in the
attributes
andmeta
values. We should also add support for conditional relationships.To do this, we need to support (in the encoder) having relations wrapped in either a conditional attribute or conditional attributes object. So the syntax on the resource would be:
Probably we should rename the
ConditionalAttr
andConditionalAttrs
classes toConditionalField
andConditionalFields
considering we're now not just using them in attributes.The text was updated successfully, but these errors were encountered: