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

Throw SchemaException when loading fails #24

Closed
FloriNNic opened this issue Aug 4, 2023 · 1 comment
Closed

Throw SchemaException when loading fails #24

FloriNNic opened this issue Aug 4, 2023 · 1 comment

Comments

@FloriNNic
Copy link

Hello,

It would be very useful if a SchemaException (or similar) would be thrown when loading a Schema with errors (such as invalid references, or wrongly used keywords). At the moment, an Error is thrown, which is too generic and also does not provide a JSON pointer (like the previous library).

Thank you for your great work!

Regards,
Florin

@erosb
Copy link
Owner

erosb commented Apr 1, 2024

Hello @FloriNNic @octavianN , I made improvements to error handling during schema loading in the latest release (0.15.0), example usage is here: https://github.com/erosb/json-sKema-examples/blob/master/src/main/java/com/github/erosb/jsonsKema/examples/LoadingFailureDetails.java

I'm happy if you share any feedback. Thank you.

@erosb erosb closed this as completed Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants