Closed
Description
When attempting to encode a resource that has a relationship to a single other resource (i.e. what is often referred to as a "toOne" resource) the Parser throws the following error:
Schema is not registered for a resource at path "toOneResource"
Note that the error only occurs when the relationship is not empty. If the relationship is empty, the data is generated correctly. (e.g. below)
data: {}
instead of
data: []
Is this a bug, or are "toMany" relationships not supported?