Files

42 lines
819 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://ragcore.example.test/schemas/job-payload-envelope-v1.json",
"title": "RAGCore Job Payload Envelope",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"job_type",
"workspace_id",
"idempotency_key",
"payload"
],
"properties": {
"schema_version": {
"const": 1
},
"job_type": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.-]+$"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"idempotency_key": {
"type": "string",
"minLength": 16,
"maxLength": 256
},
"trace_id": {
"type": [
"string",
"null"
]
},
"payload": {
"type": "object"
}
}
}