{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trendswap-app/json-schema/trendswap-app-job-response-schema.json",
  "title": "JobResponse",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trendswap-app-openapi.json#/components/schemas/JobResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed"
      ]
    },
    "progress": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "video_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "resolution": {
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "template": {
      "type": "string"
    },
    "portrait_id": {
      "type": "string"
    },
    "error_message": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}