{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knackjay/json-schema/knackjay-dry-run-schema.json",
  "title": "DryRun",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/knackjay-api-openapi.yml#/components/schemas/DryRun",
  "type": "object",
  "properties": {
    "dry_run": {
      "type": "boolean",
      "const": true
    },
    "site": {
      "type": "string"
    },
    "outcome": {
      "type": "string",
      "enum": [
        "would_queue",
        "would_refuse",
        "would_reject_as_abuse"
      ]
    },
    "price": {
      "type": "integer",
      "description": "micro-dollars"
    },
    "charged": {
      "type": "integer",
      "const": 0,
      "description": "Always 0 micro-dollars on a dry run"
    },
    "penalty_if_abuse": {
      "type": "integer",
      "description": "What an abusive post would cost in total, in micro-dollars"
    },
    "ready_to_post": {
      "type": "boolean"
    },
    "blocking": {
      "type": "object",
      "description": "What stops a real post now (e.g. needs_card), with account_url for the human."
    },
    "refusal": {
      "type": "object",
      "properties": {
        "category": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "rule": {
          "type": "string"
        }
      }
    },
    "flags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "note": {
      "type": "string"
    }
  }
}