Currently I have added something to pre-filter the json when it is loaded for a $include, that will load in another file and merge the object that the $include is in and the file that it is referencing.
Example:
base.json
element.json
{
"type": "object",
"properties": {
"$include": "base.json",
"second": { . . . }
}
}
will result in a schema
{
"type": "object",
"properties": {
"first": { . . . },
"second": { . . . }
}
}