{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postcache-dev/json-schema/postcache-dev-dry-run-schema.json",
  "title": "DryRun",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postcache-dev-openapi.json#/components/schemas/DryRun",
  "type": "object",
  "properties": {
    "dry_run": {
      "type": "boolean"
    },
    "checks": {
      "$ref": "#/$defs/Checks"
    },
    "convertible": {
      "type": "boolean",
      "description": "Present when convert was given"
    }
  },
  "$defs": {
    "Checks": {
      "type": "object",
      "properties": {
        "target": {
          "$ref": "#/$defs/Target"
        },
        "pass": {
          "type": "boolean"
        },
        "kind": {
          "type": "string",
          "enum": [
            "image",
            "video",
            "unknown",
            "unreadable"
          ]
        },
        "problems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Problem"
          }
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Problem": {
      "type": "object",
      "properties": {
        "rule": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "fix": {
          "type": "string"
        }
      }
    },
    "Target": {
      "type": "string",
      "enum": [
        "instagram.feed",
        "instagram.carousel",
        "instagram.reels",
        "instagram.story",
        "threads",
        "facebook.page"
      ]
    }
  }
}