{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "$schema": {
      "$ref": "#/$defs/__schema0"
    },
    "schema_version": {
      "$ref": "#/$defs/__schema1"
    },
    "document_type": {
      "$ref": "#/$defs/__schema2"
    },
    "edition_id": {
      "$ref": "#/$defs/__schema3"
    },
    "source_edition_id": {
      "$ref": "#/$defs/__schema3"
    },
    "edition_number": {
      "$ref": "#/$defs/__schema4"
    },
    "edition_label": {
      "$ref": "#/$defs/__schema5"
    },
    "status": {
      "$ref": "#/$defs/__schema6"
    },
    "revision": {
      "$ref": "#/$defs/__schema7"
    },
    "published_at": {
      "$ref": "#/$defs/__schema8"
    },
    "modified_at": {
      "$ref": "#/$defs/__schema8"
    },
    "timezone": {
      "$ref": "#/$defs/__schema9"
    },
    "canonical_url": {
      "$ref": "#/$defs/__schema10"
    },
    "html_url": {
      "$ref": "#/$defs/__schema10"
    },
    "json_url": {
      "$ref": "#/$defs/__schema10"
    },
    "markdown_url": {
      "$ref": "#/$defs/__schema10"
    },
    "lead_story_id": {
      "$ref": "#/$defs/__schema3"
    },
    "lead_summary": {
      "$ref": "#/$defs/__schema3"
    },
    "coverage_window": {
      "$ref": "#/$defs/__schema11"
    },
    "story_count": {
      "$ref": "#/$defs/__schema12"
    },
    "stories": {
      "$ref": "#/$defs/__schema13"
    },
    "sources": {
      "$ref": "#/$defs/__schema29"
    },
    "corrections": {
      "$ref": "#/$defs/__schema31"
    },
    "publisher": {
      "$ref": "#/$defs/__schema32"
    }
  },
  "required": [
    "$schema",
    "schema_version",
    "document_type",
    "edition_id",
    "source_edition_id",
    "edition_number",
    "edition_label",
    "status",
    "revision",
    "published_at",
    "modified_at",
    "timezone",
    "canonical_url",
    "html_url",
    "json_url",
    "markdown_url",
    "lead_story_id",
    "lead_summary",
    "coverage_window",
    "story_count",
    "stories",
    "sources",
    "corrections",
    "publisher"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "type": "string",
      "const": "https://themachinepress.com/schemas/edition-v1.schema.json"
    },
    "__schema1": {
      "type": "string",
      "const": "1.0.0"
    },
    "__schema2": {
      "type": "string",
      "const": "machine_press_edition"
    },
    "__schema3": {
      "type": "string",
      "minLength": 1
    },
    "__schema4": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "__schema5": {
      "type": "string",
      "const": "Morning edition"
    },
    "__schema6": {
      "type": "string",
      "const": "published"
    },
    "__schema7": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "__schema8": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "__schema9": {
      "type": "string",
      "const": "America/Detroit"
    },
    "__schema10": {
      "type": "string",
      "format": "uri",
      "pattern": "^https:\\/\\/.*"
    },
    "__schema11": {
      "type": "object",
      "properties": {
        "start": {
          "$ref": "#/$defs/__schema8"
        },
        "end": {
          "$ref": "#/$defs/__schema8"
        }
      },
      "required": [
        "start",
        "end"
      ],
      "additionalProperties": false
    },
    "__schema12": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "__schema13": {
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema14"
      }
    },
    "__schema14": {
      "type": "object",
      "properties": {
        "story_id": {
          "$ref": "#/$defs/__schema3"
        },
        "source_story_id": {
          "$ref": "#/$defs/__schema3"
        },
        "edition_id": {
          "$ref": "#/$defs/__schema3"
        },
        "edition_url": {
          "$ref": "#/$defs/__schema10"
        },
        "position": {
          "$ref": "#/$defs/__schema15"
        },
        "story_type": {
          "$ref": "#/$defs/__schema16"
        },
        "section": {
          "$ref": "#/$defs/__schema3"
        },
        "editorial_classification": {
          "$ref": "#/$defs/__schema17"
        },
        "headline": {
          "$ref": "#/$defs/__schema3"
        },
        "slug": {
          "$ref": "#/$defs/__schema3"
        },
        "dek": {
          "$ref": "#/$defs/__schema3"
        },
        "summary": {
          "$ref": "#/$defs/__schema3"
        },
        "body_text": {
          "$ref": "#/$defs/__schema3"
        },
        "why_it_matters": {
          "$ref": "#/$defs/__schema3"
        },
        "limitations": {
          "$ref": "#/$defs/__schema18"
        },
        "importance": {
          "$ref": "#/$defs/__schema19"
        },
        "canonical_url": {
          "$ref": "#/$defs/__schema10"
        },
        "json_url": {
          "$ref": "#/$defs/__schema10"
        },
        "first_published_at": {
          "$ref": "#/$defs/__schema8"
        },
        "modified_at": {
          "$ref": "#/$defs/__schema8"
        },
        "content_status": {
          "$ref": "#/$defs/__schema20"
        },
        "is_carryover": {
          "$ref": "#/$defs/__schema21"
        },
        "carryover_reason": {
          "$ref": "#/$defs/__schema22"
        },
        "key_claims": {
          "$ref": "#/$defs/__schema23"
        },
        "source_ids": {
          "$ref": "#/$defs/__schema24"
        },
        "tags": {
          "$ref": "#/$defs/__schema25"
        },
        "image_url": {
          "$ref": "#/$defs/__schema26"
        },
        "corrections": {
          "$ref": "#/$defs/__schema27"
        }
      },
      "required": [
        "story_id",
        "source_story_id",
        "edition_id",
        "edition_url",
        "position",
        "story_type",
        "section",
        "editorial_classification",
        "headline",
        "slug",
        "dek",
        "summary",
        "body_text",
        "why_it_matters",
        "limitations",
        "importance",
        "canonical_url",
        "json_url",
        "first_published_at",
        "modified_at",
        "content_status",
        "is_carryover",
        "carryover_reason",
        "key_claims",
        "source_ids",
        "tags",
        "image_url",
        "corrections"
      ],
      "additionalProperties": false
    },
    "__schema15": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "__schema16": {
      "type": "string",
      "enum": [
        "lead",
        "secondary",
        "ticker",
        "dispatch",
        "invention_desk"
      ]
    },
    "__schema17": {
      "type": "string",
      "enum": [
        "editorial",
        "sponsored",
        "house_example"
      ]
    },
    "__schema18": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema3"
      }
    },
    "__schema19": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 10
        },
        {
          "type": "null"
        }
      ]
    },
    "__schema20": {
      "type": "string",
      "enum": [
        "new",
        "updated",
        "carried_over"
      ]
    },
    "__schema21": {
      "type": "boolean"
    },
    "__schema22": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "__schema23": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "claim_id": {
            "$ref": "#/$defs/__schema3"
          },
          "text": {
            "$ref": "#/$defs/__schema3"
          },
          "source_ids": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "qualification": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "claim_id",
          "text",
          "source_ids",
          "qualification"
        ],
        "additionalProperties": false
      }
    },
    "__schema24": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema3"
      }
    },
    "__schema25": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema3"
      }
    },
    "__schema26": {
      "anyOf": [
        {
          "$ref": "#/$defs/__schema10"
        },
        {
          "type": "null"
        }
      ]
    },
    "__schema27": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema28"
      }
    },
    "__schema28": {
      "type": "object",
      "properties": {
        "correction_id": {
          "$ref": "#/$defs/__schema3"
        },
        "revision": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "summary": {
          "$ref": "#/$defs/__schema3"
        },
        "published_at": {
          "$ref": "#/$defs/__schema8"
        },
        "affected_story_ids": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema3"
          }
        },
        "affected_claim_ids": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema3"
          }
        }
      },
      "required": [
        "correction_id",
        "revision",
        "summary",
        "published_at",
        "affected_story_ids",
        "affected_claim_ids"
      ],
      "additionalProperties": false
    },
    "__schema29": {
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema30"
      }
    },
    "__schema30": {
      "type": "object",
      "properties": {
        "source_id": {
          "$ref": "#/$defs/__schema3"
        },
        "title": {
          "$ref": "#/$defs/__schema3"
        },
        "publisher": {
          "$ref": "#/$defs/__schema3"
        },
        "url": {
          "$ref": "#/$defs/__schema10"
        },
        "canonical_url": {
          "$ref": "#/$defs/__schema10"
        },
        "source_type": {
          "type": "string",
          "enum": [
            "primary_research",
            "official_announcement",
            "official_documentation",
            "regulatory_filing",
            "company_statement",
            "wire_report",
            "secondary_reporting",
            "press_release",
            "aggregator",
            "repository",
            "dataset"
          ]
        },
        "is_primary_source": {
          "type": "boolean"
        },
        "published_at": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema8"
            },
            {
              "type": "null"
            }
          ]
        },
        "accessed_at": {
          "$ref": "#/$defs/__schema8"
        },
        "supports_claim_ids": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema3"
          }
        }
      },
      "required": [
        "source_id",
        "title",
        "publisher",
        "url",
        "canonical_url",
        "source_type",
        "is_primary_source",
        "published_at",
        "accessed_at",
        "supports_claim_ids"
      ],
      "additionalProperties": false
    },
    "__schema31": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema28"
      }
    },
    "__schema32": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "const": "The Machine Press"
        },
        "url": {
          "type": "string",
          "const": "https://themachinepress.com"
        },
        "description": {
          "$ref": "#/$defs/__schema3"
        }
      },
      "required": [
        "name",
        "url",
        "description"
      ],
      "additionalProperties": false
    }
  },
  "$id": "https://themachinepress.com/schemas/edition-v1.schema.json",
  "title": "The Machine Press edition document"
}
