{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cadencz-com/json-schema/cadencz-com-variant-read-schema.json",
  "title": "VariantRead",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cadencz-com-posts-api-openapi.yml#/components/schemas/VariantRead",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "post_id": {
      "type": "string",
      "title": "Post Id"
    },
    "channel_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Channel Id"
    },
    "platform": {
      "type": "string",
      "title": "Platform"
    },
    "body": {
      "type": "string",
      "title": "Body"
    },
    "media_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Media Ids"
    },
    "media": {
      "items": {
        "$ref": "#/$defs/MediaRead"
      },
      "type": "array",
      "title": "Media"
    },
    "platform_target": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform Target"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "scheduled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scheduled At"
    },
    "published_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Published At"
    },
    "provider_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider Url"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error"
    },
    "attempt_count": {
      "type": "integer",
      "title": "Attempt Count"
    },
    "content_metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Content Metadata"
    },
    "thread_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Thread Id"
    },
    "thread_position": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Thread Position"
    }
  },
  "type": "object",
  "required": [
    "id",
    "post_id",
    "channel_id",
    "platform",
    "body",
    "media_ids",
    "platform_target",
    "status",
    "scheduled_at",
    "published_at",
    "provider_url",
    "error",
    "attempt_count"
  ],
  "$defs": {
    "MediaRead": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "kind": {
          "type": "string",
          "title": "Kind"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "alt_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alt Text"
        },
        "width": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Width"
        },
        "height": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Height"
        },
        "bytes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bytes"
        }
      },
      "type": "object",
      "required": [
        "id",
        "kind",
        "url"
      ],
      "title": "MediaRead"
    }
  }
}