{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/socialync-io/json-schema/socialync-io-post-patch-schema.json",
  "title": "PostPatch",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/socialync-io-openapi.json#/components/schemas/PostPatch",
  "type": "object",
  "properties": {
    "scheduledAt": {
      "type": "string",
      "format": "date-time"
    },
    "caption": {
      "type": "string",
      "minLength": 1,
      "maxLength": 50000
    },
    "platformCaptions": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50000
      },
      "propertyNames": {
        "enum": [
          "facebook",
          "instagram",
          "tiktok",
          "youtube",
          "linkedin",
          "twitter",
          "threads",
          "bluesky"
        ]
      }
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "firstComment": {
      "type": "string",
      "maxLength": 2200
    },
    "removePlatforms": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "facebook",
          "instagram",
          "tiktok",
          "youtube",
          "linkedin",
          "twitter",
          "threads",
          "bluesky"
        ]
      },
      "minItems": 1
    }
  },
  "additionalProperties": false
}