The current implementation of the RefResolver can only handle JSON schema definitions which result in a tree and not a graph and only to a certain depth.
The RefResolver needs to be replaced or fixed so it can handle JSON schema definitions which contains cycles.
I'm still working on a solution for the RefResolver and I'm almost done. When I've added some regression tests I will submit my code and create a pull request.