-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nullify unresolved links (optional) #58
Conversation
Would it maybe be better to have an edit: by "better" I mean it could allow clients to react to unresolved links with a bit more information. |
@grncdr That introduces the same problem, only instead of a CDAResource linkedResource = myEntry.getFields().get("linked");
if (linkedResource instanceof UnresolvedLink) {
// ..
} else {
// ..
} That unfortunately forces the caller to use reflection in order to figure that out :( |
That's a fair point. Is there some way that we could return |
I don't think so, AFAIK the way that the iOS SDK deals with this is simply create a blank |
Nullify unresolved links (optional)
FWIW, the iOS SDK indeed has blank objects for this case, and a It is not possible to distinguish whether is is indeed a dead link or simply one not included in the response via that property, though. |
No description provided.