{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weavon.github.io/weavon/data/dashboard.schema.json",
  "title": "Weavon compatibility report",
  "description": "The format of data/latest.json: the parity of Weavon with Pandoc 3.13.",
  "type": "object",
  "required": [
    "schema",
    "weavonVersion",
    "pandocVersion",
    "siteCommit",
    "measuredRelease",
    "measuredDate",
    "generatedDate",
    "sources",
    "summary",
    "inputFormats",
    "outputFormats",
    "extensions",
    "options"
  ],
  "properties": {
    "$schema": {
      "type": "string"
    },
    "schema": {
      "const": 1
    },
    "weavonVersion": {
      "type": "string",
      "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
    },
    "pandocVersion": {
      "type": "string"
    },
    "siteCommit": {
      "type": "string",
      "pattern": "^[0-9a-f]{7,40}$"
    },
    "measuredRelease": {
      "type": "string",
      "pattern": "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
    },
    "measuredDate": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
    },
    "generatedDate": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "summary": {
      "type": "object",
      "required": [
        "conformance",
        "inputFormats",
        "outputFormats",
        "extensions",
        "options",
        "pandocTestSuite",
        "corpus",
        "server",
        "lua",
        "highlightLanguages"
      ],
      "properties": {
        "inputFormats": {
          "type": "object",
          "required": [
            "passing",
            "partial",
            "failing",
            "notApplicable",
            "total"
          ],
          "properties": {
            "passing": {
              "type": "integer",
              "minimum": 0
            },
            "partial": {
              "type": "integer",
              "minimum": 0
            },
            "failing": {
              "type": "integer",
              "minimum": 0
            },
            "notApplicable": {
              "type": "integer",
              "minimum": 0
            },
            "total": {
              "type": "integer",
              "minimum": 0
            }
          },
          "additionalProperties": false
        },
        "outputFormats": {
          "type": "object",
          "required": [
            "passing",
            "partial",
            "failing",
            "notApplicable",
            "total"
          ],
          "properties": {
            "passing": {
              "type": "integer",
              "minimum": 0
            },
            "partial": {
              "type": "integer",
              "minimum": 0
            },
            "failing": {
              "type": "integer",
              "minimum": 0
            },
            "notApplicable": {
              "type": "integer",
              "minimum": 0
            },
            "total": {
              "type": "integer",
              "minimum": 0
            }
          },
          "additionalProperties": false
        },
        "extensions": {
          "type": "object",
          "required": [
            "passing",
            "partial",
            "failing",
            "notApplicable",
            "total"
          ],
          "properties": {
            "passing": {
              "type": "integer",
              "minimum": 0
            },
            "partial": {
              "type": "integer",
              "minimum": 0
            },
            "failing": {
              "type": "integer",
              "minimum": 0
            },
            "notApplicable": {
              "type": "integer",
              "minimum": 0
            },
            "total": {
              "type": "integer",
              "minimum": 0
            }
          },
          "additionalProperties": false
        },
        "options": {
          "type": "object",
          "required": [
            "passing",
            "partial",
            "failing",
            "notApplicable",
            "total"
          ],
          "properties": {
            "passing": {
              "type": "integer",
              "minimum": 0
            },
            "partial": {
              "type": "integer",
              "minimum": 0
            },
            "failing": {
              "type": "integer",
              "minimum": 0
            },
            "notApplicable": {
              "type": "integer",
              "minimum": 0
            },
            "total": {
              "type": "integer",
              "minimum": 0
            }
          },
          "additionalProperties": false
        },
        "conformance": {
          "type": "object",
          "required": [
            "passing",
            "total",
            "deliberate",
            "regressions"
          ],
          "properties": {
            "passing": {
              "type": "integer",
              "minimum": 0
            },
            "total": {
              "type": "integer",
              "minimum": 1
            },
            "deliberate": {
              "type": "integer",
              "minimum": 0
            },
            "regressions": {
              "type": "integer",
              "minimum": 0
            }
          }
        },
        "highlightLanguages": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "inputFormats": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "status",
          "checks"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "enum": [
              "passing",
              "partial",
              "failing",
              "not_applicable",
              "not_started"
            ]
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "kind",
                "passing",
                "total"
              ],
              "properties": {
                "kind": {
                  "type": "string"
                },
                "passing": {
                  "type": "integer",
                  "minimum": 0
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            }
          },
          "reason": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "outputFormats": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "status",
          "checks"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "enum": [
              "passing",
              "partial",
              "failing",
              "not_applicable",
              "not_started"
            ]
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "kind",
                "passing",
                "total"
              ],
              "properties": {
                "kind": {
                  "type": "string"
                },
                "passing": {
                  "type": "integer",
                  "minimum": 0
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            }
          },
          "reason": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "extensions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "status",
          "checks"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "enum": [
              "passing",
              "partial",
              "failing",
              "not_applicable",
              "not_started"
            ]
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "kind",
                "passing",
                "total"
              ],
              "properties": {
                "kind": {
                  "type": "string"
                },
                "passing": {
                  "type": "integer",
                  "minimum": 0
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            }
          },
          "reason": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "options": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "status",
          "checks"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "enum": [
              "passing",
              "partial",
              "failing",
              "not_applicable",
              "not_started"
            ]
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "kind",
                "passing",
                "total"
              ],
              "properties": {
                "kind": {
                  "type": "string"
                },
                "passing": {
                  "type": "integer",
                  "minimum": 0
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            }
          },
          "reason": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  }
}
