Closed axmo closed 3 years ago
Sorry for the confusion! You were really close to getting this to work. I have added a better example to the documentation in response to this question, but I'll also briefly note here that either of the following would probably solve your problem:
Link<String, NoMetadata>
and add extension String: JSONAPIURL {}
Link<URL, NoMetadata>
and add extension URL: JSONAPIURL {}
It is generally bad practice to extend types you didn't implement with protocols you didn't create, but in this case it is exactly how I intend apps to specify that a type that is not necessarily a URL should be used to decode the URL in a particular link.
It looks like this issue can be closed. Feel free to reopen it if I have not fully answered the question you were asking.
The API I am connecting to includes Links on some resources, but adding
within a
ResourceObjectDescription
Results in errors:
The Colab examples and Server/Client example all have
NoLinks
, and the documentation on Links is pretty short. I have triedLink<JSONAPIURL, NoMetadata>
andLink<String, NoMetadata>
but those result in errors as well.Any help you can provide would be appreciated!
Using version 5.0