Recursive simple
{
"$schema": "http://json-schema.org/draft-07/schema#", "title": "Recursive Object", "type": "object", "properties": { "name": { "type": "string", "description": "Name of the node" }, "type": { "type": "string", "description": "Type or category of the node" }, "children": { "type": "array", "description": "Nested child nodes of the same structure", "items": { "$ref": "#" } } }, "required": ["name", "type"], "additionalProperties": false
}