In fact, we may want this to be the default behavior? Maybe not, though (explicitness might be better since one-to-one relationships are rarer).
Combine this with #6 and you can make sure your API shows an embedded one-to-one relationship only if it exists. This really feels like the intelligent default, though, so we may need to play around with how we configure these options.
Right now, the following fails:
Because it tries to present
nil
withDocumentPresenter
.This should be configurable, e.g.:
In fact, we may want this to be the default behavior? Maybe not, though (explicitness might be better since one-to-one relationships are rarer).
Combine this with #6 and you can make sure your API shows an embedded one-to-one relationship only if it exists. This really feels like the intelligent default, though, so we may need to play around with how we configure these options.