{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://go-sip.local/contracts/schema/http-task-list.schema.json", "title": "GET /internal/v1/dispatcher/tasks response; external SaaS compatibility unverified", "oneOf": [ { "type": "object", "additionalProperties": false, "required": [ "dispatcher_id", "cursor", "tasks" ], "properties": { "schema_version": {}, "control_seq": {}, "dispatcher_id": { "$ref": "./common.schema.json#/$defs/dispatcher_id" }, "cursor": { "type": "string", "minLength": 1 }, "tasks": { "type": "array", "items": { "$ref": "#/$defs/task" } } }, "$comment": "A page containing zero tasks and a cursor ends enumeration. Non-empty short pages never end enumeration. Persist non-empty pages before using their returned cursor." }, { "$ref": "./common.schema.json#/$defs/error" } ], "$defs": { "task": { "type": "object", "additionalProperties": false, "required": [ "task_id", "tenant_id", "status", "task_revision" ], "properties": { "schema_version": {}, "control_seq": {}, "task_id": { "$ref": "./common.schema.json#/$defs/task_id" }, "tenant_id": { "$ref": "./common.schema.json#/$defs/tenant_id" }, "status": { "$ref": "./common.schema.json#/$defs/task_status" }, "task_revision": { "type": "integer", "minimum": 1 } } } } }