{
  "title": "JSON schema for Release Drafter yaml files",
  "id": "https://github.com/release-drafter/release-drafter/blob/master/schema.json",
  "type": "object",
  "properties": {
    "references": {
      "type": "array",
      "default": ["master"],
      "items": {
        "type": "string"
      }
    },
    "change-template": {
      "type": "string",
      "default": "'* $TITLE (#$NUMBER) @$AUTHOR'"
    },
    "change-title-escapes": {
      "type": "string",
      "default": ""
    },
    "no-changes-template": {
      "type": "string",
      "default": "'* No changes'"
    },
    "version-template": {
      "type": "string",
      "default": "$MAJOR.$MINOR.$PATCH$PRERELEASE"
    },
    "name-template": {
      "type": "string",
      "default": ""
    },
    "tag-prefix": {
      "type": "string",
      "default": ""
    },
    "tag-template": {
      "type": "string",
      "default": ""
    },
    "exclude-labels": {
      "type": "array",
      "default": [],
      "items": {
        "type": "string"
      }
    },
    "include-labels": {
      "type": "array",
      "default": [],
      "items": {
        "type": "string"
      }
    },
    "include-paths": {
      "type": "array",
      "default": [],
      "items": {
        "type": "string"
      }
    },
    "exclude-paths": {
      "type": "array",
      "default": [],
      "items": {
        "type": "string"
      }
    },
    "exclude-contributors": {
      "type": "array",
      "default": [],
      "items": {
        "type": "string"
      }
    },
    "no-contributors-template": {
      "type": "string",
      "default": "No contributors"
    },
    "sort-by": {
      "type": "string",
      "default": "merged_at",
      "enum": ["merged_at", "title"]
    },
    "sort-direction": {
      "type": "string",
      "default": "descending",
      "enum": ["ascending", "descending"]
    },
    "prerelease": {
      "type": "boolean",
      "default": false
    },
    "prerelease-identifier": {
      "type": "string",
      "default": ""
    },
    "latest": {
      "type": "string",
      "default": "true"
    },
    "filter-by-commitish": {
      "type": "boolean",
      "default": false
    },
    "include-pre-releases": {
      "type": "boolean",
      "default": false
    },
    "commitish": {
      "type": "string",
      "default": ""
    },
    "replacers": {
      "type": "array",
      "default": [],
      "items": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          },
          "replace": {
            "type": "string"
          }
        },
        "required": ["search", "replace"],
        "additionalProperties": false
      }
    },
    "autolabeler": {
      "type": "array",
      "default": [],
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "files": {
            "type": "array",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "branch": {
            "type": "array",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "title": {
            "type": "array",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "body": {
            "type": "array",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["label"],
        "additionalProperties": false
      }
    },
    "categories": {
      "type": "array",
      "default": [],
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "collapse-after": {
            "type": "integer",
            "default": 0,
            "minimum": 0
          },
          "label": {
            "type": "string"
          },
          "labels": {
            "type": "array",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["title"],
        "additionalProperties": false
      }
    },
    "version-resolver": {
      "type": "object",
      "default": {
        "major": {
          "labels": []
        },
        "minor": {
          "labels": []
        },
        "patch": {
          "labels": []
        },
        "default": "patch"
      },
      "properties": {
        "major": {
          "type": "object",
          "properties": {
            "labels": {
              "type": "array",
              "default": [],
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "minor": {
          "type": "object",
          "properties": {
            "labels": {
              "type": "array",
              "default": [],
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "patch": {
          "type": "object",
          "properties": {
            "labels": {
              "type": "array",
              "default": [],
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "default": {
          "type": "string",
          "default": "patch",
          "enum": ["major", "minor", "patch"]
        }
      },
      "additionalProperties": false
    },
    "category-template": {
      "type": "string",
      "default": "## $TITLE"
    },
    "header": {
      "type": "string",
      "default": ""
    },
    "template": {
      "type": "string"
    },
    "footer": {
      "type": "string",
      "default": ""
    },
    "_extends": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
