{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openbook-data-standards.github.io/openbook/schema/series.schema.json",
  "title": "OpenBook series (live lead)",
  "description": "Live playoff series lead (Q86 leftovers, Q139–Q140, Q148–Q155). Not this game's score. Not competitionType series. Round stays on stage (seriesGame). wins is leftover English (Q154): exactly two rows, this fixture's participants, total is games won (integer, 0 allowed). A win ticks when this game is down.",
  "type": "object",
  "required": [
    "openbookVersion",
    "sequence",
    "dateModified",
    "fixture",
    "stage",
    "wins"
  ],
  "properties": {
    "@context": {},
    "@type": {
      "type": "string"
    },
    "openbookVersion": {
      "$ref": "common.schema.json#/$defs/openbookVersion"
    },
    "sequence": {
      "$ref": "common.schema.json#/$defs/sequence"
    },
    "dateModified": {
      "$ref": "common.schema.json#/$defs/dateTime"
    },
    "fixture": {
      "$ref": "common.schema.json#/$defs/ownId",
      "description": "This game in the series."
    },
    "stage": {
      "$ref": "common.schema.json#/$defs/ownId",
      "description": "The printed round (seriesGame)."
    },
    "wins": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "description": "Exactly two rows (Q150). Leftover English (Q154). Not scores. Not participants.",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "participant",
          "total"
        ],
        "properties": {
          "participant": {
            "$ref": "common.schema.json#/$defs/ownId",
            "description": "This fixture's series side."
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "description": "Games won in this series (Q152–Q153). Not this game's points."
          }
        }
      }
    }
  },
  "patternProperties": {
    "^x_": {}
  },
  "additionalProperties": false
}
