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

Exception in thread "main" java.lang.IllegalArgumentException: Invalid schema combination, unresolved $ref references #17

Open
kamalnsantosh opened this issue Apr 22, 2020 · 1 comment

Comments

@kamalnsantosh
Copy link

Unable to refer other json schema files , tried loading all schemas
upfront but still did not work,

Already referred to
#7 but could not
resolve it, appreciate your help.

    SchemaSource personSource = new UrlSchemaSource(
            getClass().getResource("/config/person.json"));


    SchemaSource addressSource = new UrlSchemaSource(
            getClass().getResource("/config/address.json"));

In Person.json
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"$id": "#test",
"properties": {
"billing_address": { "$ref": "./address.json" }
}
}

Address.json is in same folder as person.json

Exception in thread "main" java.lang.IllegalArgumentException: Invalid
schema combination, unresolved $ref references: address.json

@kamalnsantosh
Copy link
Author

@worldturner : Any thoughts

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

1 participant