{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "root": {
      "type": "string",
      "const": "../"
    },
    "files": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "codeFences": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "command": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "infoString": {
                  "type": "string"
                },
                "allowExitCode": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 255
                },
                "onMismatchDuringCheck": {
                  "type": "string",
                  "enum": ["error", "warn", "ignore"]
                }
              },
              "required": ["command", "infoString"],
              "additionalProperties": false
            }
          }
        },
        "required": ["codeFences"],
        "additionalProperties": false
      }
    }
  },
  "required": ["$schema", "root", "files"],
  "additionalProperties": false
}
