Skip to content
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

jsonschema should re-export referencing::Error #614

Closed
mplanchard opened this issue Oct 24, 2024 · 1 comment · Fixed by #615
Closed

jsonschema should re-export referencing::Error #614

mplanchard opened this issue Oct 24, 2024 · 1 comment · Fixed by #615

Comments

@mplanchard
Copy link

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.

@Stranger6667
Copy link
Owner

Makes sense, that's an oversight. Thank you so much for reporting it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants