{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yonyon-ai/json-schema/yonyon-ai-job-schema.json",
  "title": "Job",
  "description": "Polled job result from GET /api/v1/jobs/{jobId}.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yonyon-ai-openapi.yml#/components/schemas/Job",
  "type": "object",
  "required": [
    "job_id",
    "status",
    "op",
    "result"
  ],
  "properties": {
    "job_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "succeeded"
      ],
      "description": "Jobs on this API complete on the first poll."
    },
    "op": {
      "type": "string",
      "enum": [
        "projects",
        "services",
        "about"
      ]
    },
    "result": {
      "type": "object",
      "additionalProperties": true,
      "description": "The read result (projects list, services markdown, or about markdown)."
    }
  }
}