You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resource is re-exported in jsonschema, but in order to create one, one has to call Resource::from_content(), which returns a Result<Resource, referencing::Error>. It is impossible to access referencing::Error in any way that I can see form the jsonschema crate, so it becomes necessary to import referencing as well, ensuring version and type parity.
It would be much more convenient if either all of referencing were re-exported somewhere, or at least some referencing namespace was provided in which the Error could be accessed.
The text was updated successfully, but these errors were encountered:
Resource
is re-exported injsonschema
, but in order to create one, one has to callResource::from_content()
, which returns aResult<Resource, referencing::Error>
. It is impossible to accessreferencing::Error
in any way that I can see form thejsonschema
crate, so it becomes necessary to importreferencing
as well, ensuring version and type parity.It would be much more convenient if either all of
referencing
were re-exported somewhere, or at least somereferencing
namespace was provided in which theError
could be accessed.The text was updated successfully, but these errors were encountered: