I have a JSON Schema
{
\'description\': \'TPNode\',
\'type\': \'object\',
\'id\': \'tp_node\',
\'properties\': {
\'selector\': {
Yes, your schema will work. The "$ref": "#" points back to the root of the schema document.
However, the "type": "object" is useless:
{
'type': 'object',
'$ref': '#'
}
If $ref is present, then all other keywords are ignored. It would be better to remove type from the #/properties/children/items schema.