Consider providing retrieve
functions with an enclosing specification
#65
Labels
enhancement
New feature or request
retrieve
functions with an enclosing specification
#65
Sometimes one wants to retrieve a resource but default to the specification of the document it is contained within.
In other words, to call
Resource.from_contents(..., default_specification=enclosing_specification)
from within a retrieval function.This isn't completely trivial to implement however, because users can call
.get_or_retrieve(uri)
directly, meaning the argument would have to exist there too. Additionally, resources can be root resources of course, soenclosing_specification
would anyways potentially beNone
for such cases.The text was updated successfully, but these errors were encountered: