Thanks for the reply's :)
I've played a bit around with the JavaScript Libraries and discovered that some of them support nestes $refs and some simply don't. A little bit of combing solved the problem for me.
This lead me to another idea: Schema Inheritance, instead of pure reference.
My main goal right now is the development of a big and rather complex schema collection. In some cases it would be great (and DRY) to inherit a parent schema (or part of a schema) and add further properties to it in the child object.
This does already work to a specific point, using $ref and declaring further attributes below.
But if this is a good idea, maybe this is something to support officially? It could be nice, even for the standards itself, since json schema validation seems to inherit all properties from json-schema and extend it.
The implementation would not be difficult either, its just a matter of merging the referenced object with the object that is defined (without the $ref Attr. of course). Could be easily achived, with implementations like this:
http://api.jquery.com/jQuery.extend/. In fact, it has only to be supported with the json-schema loader part of a library.
This would be a great benefit for developing big schemas. What is your oppinion on it?
(Should I open a GitHub Issue / Proposal for it and describe this idea further?)
Greets,
Simon