using draft-04, I have the following schema.
{
"$schema" : "http://json-schema.org/draft-04/schema#",
"id" : "testSchema",
"description" : "some schema",
"type" : "object",
"properties" : {
"arrayOne" : {
"id" : "arrayOne",
"type" : "array",
"minItems" : 0,
"items" : {
"itemOne" : {
"id" : "itemOne",
"description" : "an item in the array",
"$ref" : "reference.json"
}
}
}
}
}
For every call of onWalk, I am printing the node associated with the tree (to verify the behavior of ResolvingSchemaWalker). I see the following output.
onWalk called for {
"$schema" : "http://json-schema.org/draft-04/schema#",
"id" : "testSchema",
"description" : "some schema",
"type" : "object",
"properties" : {
"arrayOne" : {
"id" : "arrayOne",
"type" : "array",
"minItems" : 0,
"items" : {
"itemOne" : {
"id" : "itemOne",
"description" : "an item in the array",
"$ref" : "reference.json"
}
}
}
}
}
onWalk called for {
"id" : "arrayOne",
"type" : "array",
"minItems" : 0,
"items" : {
"itemsOne" : {
"id" : "itemsOne",
"description" : "an item in the array",
"$ref" : "reference.json"
}
}
}
onWalk called for {
"itemsOne" : {
"id" : "itemsOne",
"description" : "an item in the array",
"$ref" : "reference.json"
}
}
I don't see any onWalk calls for the resolution of reference.json. Am I doing something wrong in my schema?