{
  "$defs": {
    "ImageEntry": {
      "additionalProperties": false,
      "properties": {
        "order": {
          "maximum": 12,
          "minimum": 1,
          "title": "Order",
          "type": "integer"
        },
        "asset_id": {
          "pattern": "^[a-f0-9]{64}$",
          "title": "Asset Id",
          "type": "string"
        },
        "title": {
          "maxLength": 120,
          "minLength": 1,
          "title": "Title",
          "type": "string"
        },
        "alt": {
          "maxLength": 500,
          "minLength": 1,
          "title": "Alt",
          "type": "string"
        },
        "origin": {
          "enum": [
            "original",
            "adapted",
            "reused"
          ],
          "title": "Origin",
          "type": "string"
        },
        "source_note": {
          "maxLength": 1000,
          "minLength": 1,
          "title": "Source Note",
          "type": "string"
        }
      },
      "required": [
        "order",
        "asset_id",
        "title",
        "alt",
        "origin",
        "source_note"
      ],
      "title": "ImageEntry",
      "type": "object"
    },
    "Source": {
      "additionalProperties": false,
      "properties": {
        "title": {
          "maxLength": 200,
          "minLength": 1,
          "title": "Title",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        }
      },
      "required": [
        "title",
        "url"
      ],
      "title": "Source",
      "type": "object"
    },
    "Wechat": {
      "additionalProperties": false,
      "properties": {
        "title": {
          "maxLength": 100,
          "minLength": 1,
          "title": "Title",
          "type": "string"
        },
        "body": {
          "title": "Body",
          "type": "string"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "maxItems": 12,
          "minItems": 8,
          "title": "Tags",
          "type": "array"
        }
      },
      "required": [
        "title",
        "body",
        "tags"
      ],
      "title": "Wechat",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "properties": {
    "schema_version": {
      "const": "1.0",
      "default": "1.0",
      "title": "Schema Version",
      "type": "string"
    },
    "id": {
      "maxLength": 100,
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
      "title": "Id",
      "type": "string"
    },
    "version": {
      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$",
      "title": "Version",
      "type": "string"
    },
    "title": {
      "maxLength": 120,
      "minLength": 1,
      "title": "Title",
      "type": "string"
    },
    "subtitle": {
      "maxLength": 200,
      "minLength": 1,
      "title": "Subtitle",
      "type": "string"
    },
    "category": {
      "maxLength": 50,
      "minLength": 1,
      "title": "Category",
      "type": "string"
    },
    "summary": {
      "maxLength": 300,
      "minLength": 1,
      "title": "Summary",
      "type": "string"
    },
    "lead": {
      "maxLength": 500,
      "minLength": 1,
      "title": "Lead",
      "type": "string"
    },
    "core_claim": {
      "maxLength": 500,
      "minLength": 1,
      "title": "Core Claim",
      "type": "string"
    },
    "web_body": {
      "items": {
        "type": "string"
      },
      "maxItems": 30,
      "minItems": 1,
      "title": "Web Body",
      "type": "array"
    },
    "images": {
      "items": {
        "$ref": "#/$defs/ImageEntry"
      },
      "maxItems": 12,
      "minItems": 8,
      "title": "Images",
      "type": "array"
    },
    "wechat": {
      "$ref": "#/$defs/Wechat"
    },
    "author": {
      "maxLength": 100,
      "minLength": 1,
      "title": "Author",
      "type": "string"
    },
    "sources": {
      "items": {
        "$ref": "#/$defs/Source"
      },
      "maxItems": 30,
      "title": "Sources",
      "type": "array"
    },
    "source_statement": {
      "default": "",
      "maxLength": 1000,
      "title": "Source Statement",
      "type": "string"
    },
    "change_note": {
      "maxLength": 1000,
      "minLength": 1,
      "title": "Change Note",
      "type": "string"
    }
  },
  "required": [
    "id",
    "version",
    "title",
    "subtitle",
    "category",
    "summary",
    "lead",
    "core_claim",
    "web_body",
    "images",
    "wechat",
    "author",
    "change_note"
  ],
  "title": "Topic",
  "type": "object"
}