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

An IllegalArgumentException is thrown instead of a SchemaException #170

Closed
octavianN opened this issue Apr 23, 2018 · 1 comment
Closed

Comments

@octavianN
Copy link

If I load the following JSON Schema using SchemaLoader.load(new JSONObject(new JSONTokener(schemaJson))) an IllegalArgumentException is thrown. This is because the meta-schema URL is incorrect.
I think that a SchemaException should be thrown in this case and have also the schemaLocation set.

{
    "$schema": "http://json-schema.org123/draft-06/schema#",
    "type": "object",
    "properties": {
        "id": {
            "type": "integger"
        }
    }
}
erosb added a commit that referenced this issue May 10, 2018
erosb added a commit that referenced this issue May 13, 2018
@erosb
Copy link
Contributor

erosb commented Jun 7, 2018

The fix is available in the latest release: 1.9.0

@erosb erosb closed this as completed Jun 7, 2018
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