File size: 1,292 Bytes
f2cf4fa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "spine:task_request",
"title": "TaskRequest",
"type": "object",
"required": [
"schema_name",
"schema_version",
"task_id",
"title",
"description",
"requested_by",
"created_at",
"origin_system",
"operator_context",
"constraints",
"desired_outcomes"
],
"properties": {
"schema_name": { "const": "TaskRequest" },
"schema_version": { "type": "string", "const": "1.0.0" },
"task_id": { "type": "string", "pattern": "^task_[a-z0-9_\\-]+$" },
"title": { "type": "string", "minLength": 1 },
"description": { "type": "string", "minLength": 1 },
"requested_by": { "type": "string", "minLength": 1 },
"created_at": { "type": "string", "format": "date-time" },
"origin_system": { "type": "string", "minLength": 1 },
"operator_context": { "$ref": "./operator_context.schema.json" },
"constraints": {
"type": "array",
"items": { "type": "string" }
},
"desired_outcomes": {
"type": "array",
"minItems": 1,
"items": { "type": "string" }
},
"workspace_ref": { "type": "string" },
"tags": {
"type": "array",
"items": { "type": "string" }
}
},
"additionalProperties": false
}
|