{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "BranchList", "type": "object", "properties": { "activeBranchId": { "type": "string" }, "branches": { "type": "array", "items": { "$ref": "#/$defs/BranchSummary" } }, "storyId": { "type": "string" } }, "required": [ "storyId", "activeBranchId", "branches" ], "$defs": { "BranchSummary": { "type": "object", "properties": { "branchId": { "type": "string" }, "headLabel": { "type": "string" }, "headNodeId": { "type": "string" }, "isActive": { "type": "boolean" }, "name": { "type": "string" }, "sourceNodeId": { "type": [ "string", "null" ] } }, "required": [ "branchId", "name", "headNodeId", "headLabel", "isActive" ] } } }