Skip to content

Loading schemas from nested references fails #5

@reitzig

Description

@reitzig

I have a schema of the following structure:

{
  "$schema"    : "http://json-schema.org/draft-04/schema#",
  "properties" : {
        "someProp": {
          "$ref": "https://my.server/path"
        }
  }
}

The referenced schema contains more such references. One of them leads to this error:

[ {
  "level" : "fatal",
  "message" : "unable to dereference URI \"otherpath#\"",
  "uri" : "https://my.server/otherpath#",
  "exceptionMessage" : "java.lang.RuntimeException: Could not generate DH keypair",
  "info" : "other messages follow (if any)"
} ]

I have confirmed that the server isn't the issue: if I link only a "flat" (=no further references) schema from the same server, no error appears. Thus, it seems that the application does not handle nested references correctly.

FWIW, when I use java-json-tools/json-schema-validator locally, this error does not appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions