{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://gitversion.net/schemas/7.0/GitVersion.configuration.json",
  "title": "GitVersion Configuration (7.0)",
  "description": "GitVersion configuration schema (7.0)",
  "type": "object",
  "properties": {
    "calculation": {
      "description": "Settings that participate in semantic-version calculation.",
      "type": "object",
      "properties": {
        "branches": {
          "description": "The header for all the individual branch configuration.",
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "commit-message-incrementing": {
                "description": "Sets whether it should be possible to increment the version with special syntax in the commit message. Can be 'Disabled', 'Enabled' or 'MergeMessageOnly'.",
                "enum": [
                  "Enabled",
                  "Disabled",
                  "MergeMessageOnly",
                  null
                ]
              },
              "increment": {
                "description": "The increment strategy for this branch. Can be 'Inherit', 'Patch', 'Minor', 'Major', 'None'.",
                "$ref": "#/$defs/incrementStrategy"
              },
              "is-main-branch": {
                "description": "When using Mainline mode, this indicates that this branch is a mainline. By default main and support/* are mainlines.",
                "type": [
                  "null",
                  "boolean"
                ]
              },
              "is-release-branch": {
                "description": "Indicates this branch configuration represents a release branch in GitFlow.",
                "type": [
                  "null",
                  "boolean"
                ]
              },
              "is-source-branch-for": {
                "description": "The branches that this branch is a source branch.",
                "$ref": "#/$defs/hashSetOfString"
              },
              "label": {
                "description": "The label to use for this branch. Use {BranchName} or another named capture group from a regular expression, {Sha} for the current commit's full hash, or {ShortSha} for its abbreviated hash. Named regular expression capture groups take precedence over commit placeholders.",
                "type": [
                  "null",
                  "string"
                ]
              },
              "mode": {
                "description": "The deployment mode for this branch. Can be 'ManualDeployment', 'ContinuousDelivery', 'ContinuousDeployment'.",
                "enum": [
                  "ManualDeployment",
                  "ContinuousDelivery",
                  "ContinuousDeployment",
                  null
                ]
              },
              "prevent-increment": {
                "description": "The prevent increment configuration section.",
                "$ref": "#/$defs/preventIncrementConfiguration"
              },
              "regex": {
                "format": "regex",
                "description": "The regular expression pattern to use to match this branch. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
                "type": [
                  "null",
                  "string"
                ]
              },
              "source-branches": {
                "description": "The source branches for this branch.",
                "$ref": "#/$defs/hashSetOfString"
              },
              "track-merge-message": {
                "description": "This property is a branch related property and gives the user the possibility to control the behavior of whether the merge commit message will be interpreted as a next version or not.",
                "type": [
                  "null",
                  "boolean"
                ]
              },
              "track-merge-target": {
                "description": "Strategy which will look for tagged merge commits directly off the current branch.",
                "type": [
                  "null",
                  "boolean"
                ]
              },
              "tracks-release-branches": {
                "description": "Indicates this branch configuration represents develop in GitFlow.",
                "type": [
                  "null",
                  "boolean"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "commit-message-incrementing": {
          "description": "Sets whether it should be possible to increment the version with special syntax in the commit message. Can be 'Disabled', 'Enabled' or 'MergeMessageOnly'.",
          "enum": [
            "Enabled",
            "Disabled",
            "MergeMessageOnly",
            null
          ]
        },
        "ignore": {
          "description": "The header property for the ignore configuration.",
          "type": "object",
          "properties": {
            "branches": {
              "description": "A sequence of regular expressions matching branch names without the remote prefix to be excluded as version sources. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
              "$ref": "#/$defs/hashSetOfString"
            },
            "commits-before": {
              "format": "date-time",
              "description": "Commits before this date will be ignored. Format: yyyy-MM-ddTHH:mm:ss.",
              "type": [
                "null",
                "string"
              ]
            },
            "paths": {
              "description": "A sequence of regular expressions matching file paths to be excluded from the version calculations. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
              "$ref": "#/$defs/hashSetOfString"
            },
            "sha": {
              "description": "A sequence of SHAs to be excluded from the version calculations.",
              "$ref": "#/$defs/hashSetOfString"
            },
            "tags": {
              "description": "A sequence of regular expressions matching friendly tag names to be excluded as version sources. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
              "$ref": "#/$defs/hashSetOfString"
            }
          }
        },
        "increment": {
          "description": "The increment strategy for this branch. Can be 'Inherit', 'Patch', 'Minor', 'Major', 'None'.",
          "$ref": "#/$defs/incrementStrategy"
        },
        "is-main-branch": {
          "description": "When using Mainline mode, this indicates that this branch is a mainline. By default main and support/* are mainlines.",
          "type": [
            "null",
            "boolean"
          ]
        },
        "is-release-branch": {
          "description": "Indicates this branch configuration represents a release branch in GitFlow.",
          "type": [
            "null",
            "boolean"
          ]
        },
        "is-source-branch-for": {
          "description": "The branches that this branch is a source branch.",
          "$ref": "#/$defs/hashSetOfString"
        },
        "label": {
          "description": "The label to use for this branch. Use {BranchName} or another named capture group from a regular expression, {Sha} for the current commit's full hash, or {ShortSha} for its abbreviated hash. Named regular expression capture groups take precedence over commit placeholders.",
          "type": [
            "null",
            "string"
          ]
        },
        "major-version-bump-message": {
          "format": "regex",
          "description": "The regular expression to match commit messages with to perform a major version increment. Defaults to '[+=]semver:\\s?(breaking|major)'. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
          "default": "[+=]semver:\\s?(breaking|major)",
          "type": [
            "null",
            "string"
          ]
        },
        "merge-message-formats": {
          "description": "Custom regular expression merge message formats to enable identification of merge messages that do not follow the built-in conventions. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "minor-version-bump-message": {
          "format": "regex",
          "description": "The regular expression to match commit messages with to perform a minor version increment. Defaults to '[+=]semver:\\s?(feature|minor)'. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
          "default": "[+=]semver:\\s?(feature|minor)",
          "type": [
            "null",
            "string"
          ]
        },
        "mode": {
          "description": "The deployment mode for this branch. Can be 'ManualDeployment', 'ContinuousDelivery', 'ContinuousDeployment'.",
          "enum": [
            "ManualDeployment",
            "ContinuousDelivery",
            "ContinuousDeployment",
            null
          ]
        },
        "next-version": {
          "description": "Allows you to bump the next version explicitly. Useful for bumping main or a feature branch with breaking changes",
          "type": [
            "null",
            "string"
          ]
        },
        "no-bump-message": {
          "format": "regex",
          "description": "Used to tell GitVersion not to increment when in Mainline development mode. Defaults to '[+=]semver:\\s?(none|skip)'. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
          "default": "[+=]semver:\\s?(none|skip)",
          "type": [
            "null",
            "string"
          ]
        },
        "patch-version-bump-message": {
          "format": "regex",
          "description": "The regular expression to match commit messages with to perform a patch version increment. Defaults to '[+=]semver:\\s?(fix|patch)'. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
          "default": "[+=]semver:\\s?(fix|patch)",
          "type": [
            "null",
            "string"
          ]
        },
        "prevent-increment": {
          "description": "The prevent increment configuration section.",
          "$ref": "#/$defs/preventIncrementConfiguration"
        },
        "regex": {
          "format": "regex",
          "description": "The regular expression pattern to use to match this branch. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
          "type": [
            "null",
            "string"
          ]
        },
        "semantic-version-format": {
          "description": "Specifies the semantic version format that is used when parsing the string. Can be 'Strict' or 'Loose'. Defaults to 'Strict'.",
          "default": "Strict",
          "enum": [
            "Strict",
            "Loose"
          ]
        },
        "source-branches": {
          "description": "The source branches for this branch.",
          "$ref": "#/$defs/hashSetOfString"
        },
        "strategies": {
          "description": "Specifies which version strategies (one or more) will be used to determine the next version. Following values are available: 'ConfiguredNextVersion', 'MergeMessage', 'TaggedCommit', 'TrackReleaseBranches', 'VersionInBranchName' and 'Mainline'.",
          "type": "array",
          "items": {
            "enum": [
              "None",
              "Fallback",
              "ConfiguredNextVersion",
              "MergeMessage",
              "TaggedCommit",
              "TrackReleaseBranches",
              "VersionInBranchName",
              "Mainline"
            ]
          }
        },
        "tag-prefix": {
          "format": "regex",
          "description": "A regular expression which is used to trim Git tags before processing. Defaults to '[vV]?'. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
          "default": "[vV]?",
          "type": [
            "null",
            "string"
          ]
        },
        "track-merge-message": {
          "description": "This property is a branch related property and gives the user the possibility to control the behavior of whether the merge commit message will be interpreted as a next version or not.",
          "type": [
            "null",
            "boolean"
          ]
        },
        "track-merge-target": {
          "description": "Strategy which will look for tagged merge commits directly off the current branch.",
          "type": [
            "null",
            "boolean"
          ]
        },
        "tracks-release-branches": {
          "description": "Indicates this branch configuration represents develop in GitFlow.",
          "type": [
            "null",
            "boolean"
          ]
        },
        "version-bump-reset-message": {
          "format": "regex",
          "description": "The regular expression to match commit messages that reset the version bump baseline and suppress the configured branch increment. Defaults to '=semver:'. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
          "default": "=semver:",
          "type": [
            "null",
            "string"
          ]
        },
        "version-in-branch-pattern": {
          "format": "regex",
          "description": "A regular expression which is used to determine the version number in the branch name or commit message (e.g., v1.0.0-LTS). Defaults to '(?<version>[vV]?\\d+(\\.\\d+)?(\\.\\d+)?).*'. Matching is case-insensitive by default; use (?-i) to enable case-sensitive matching.",
          "default": "(?<version>[vV]?\\d+(\\.\\d+)?(\\.\\d+)?).*",
          "type": [
            "null",
            "string"
          ]
        }
      },
      "additionalProperties": false
    },
    "output": {
      "description": "Settings that affect assembly, build-server, and formatted version output.",
      "type": "object",
      "properties": {
        "assembly-file-versioning-format": {
          "description": "Specifies the format of AssemblyFileVersion and overwrites the value of assembly-file-versioning-scheme.",
          "type": [
            "null",
            "string"
          ]
        },
        "assembly-file-versioning-scheme": {
          "description": "The scheme to use when setting AssemblyFileVersion attribute. Can be 'MajorMinorPatchTag', 'MajorMinorPatch', 'MajorMinor', 'Major', 'None'. Defaults to 'MajorMinorPatch'.",
          "default": "MajorMinorPatch",
          "enum": [
            "MajorMinorPatchTag",
            "MajorMinorPatch",
            "MajorMinor",
            "Major",
            "None",
            null
          ]
        },
        "assembly-informational-format": {
          "description": "Specifies the format of AssemblyInformationalVersion. Defaults to '{InformationalVersion}'.",
          "default": "'{InformationalVersion}'",
          "type": [
            "null",
            "string"
          ]
        },
        "assembly-versioning-format": {
          "description": "Specifies the format of AssemblyVersion and overwrites the value of assembly-versioning-scheme.",
          "type": [
            "null",
            "string"
          ]
        },
        "assembly-versioning-scheme": {
          "description": "The scheme to use when setting AssemblyVersion attribute. Can be 'MajorMinorPatchTag', 'MajorMinorPatch', 'MajorMinor', 'Major', 'None'. Defaults to 'MajorMinorPatch'.",
          "default": "MajorMinorPatch",
          "enum": [
            "MajorMinorPatchTag",
            "MajorMinorPatch",
            "MajorMinor",
            "Major",
            "None",
            null
          ]
        },
        "branches": {
          "description": "The header for all the individual branch configuration.",
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "custom-version-format": {
                "description": "Specifies the format of CustomVersion.",
                "type": [
                  "null",
                  "string"
                ]
              },
              "pre-release-weight": {
                "description": "Provides a way to translate the PreReleaseLabelName to a number.",
                "type": [
                  "null",
                  "integer"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "commit-date-format": {
          "description": "The format to use when calculating the commit date. Defaults to 'yyyy-MM-dd'. See [Standard Date and Time Format Strings](https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings) and [Custom Date and Time Format Strings](https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings).",
          "default": "yyyy-MM-dd",
          "type": [
            "null",
            "string"
          ]
        },
        "custom-version-format": {
          "description": "Specifies the format of CustomVersion.",
          "type": [
            "null",
            "string"
          ]
        },
        "pre-release-weight": {
          "description": "Provides a way to translate the PreReleaseLabelName to a number.",
          "type": [
            "null",
            "integer"
          ]
        },
        "tag-pre-release-weight": {
          "description": "The pre-release weight in case of tagged commits. Defaults to 60000.",
          "type": [
            "null",
            "integer"
          ]
        },
        "update-build-number": {
          "description": "Whether to update the build number in the project file. Defaults to true.",
          "default": "true",
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "workflow": {
      "description": "The base template of the configuration to use. Possible values are: 'GitFlow/v1' or 'GitHubFlow/v1'",
      "type": [
        "null",
        "string"
      ]
    }
  },
  "$defs": {
    "incrementStrategy": {
      "enum": [
        "None",
        "Major",
        "Minor",
        "Patch",
        "Inherit"
      ]
    },
    "hashSetOfString": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "preventIncrementConfiguration": {
      "type": "object",
      "properties": {
        "of-merged-branch": {
          "description": "Prevent increment when branch merged.",
          "type": [
            "null",
            "boolean"
          ]
        },
        "when-branch-merged": {
          "description": "Prevent increment when branch merged.",
          "type": [
            "null",
            "boolean"
          ]
        },
        "when-current-commit-tagged": {
          "description": "This branch related property controls the behavior whether to use the tagged (value set to true) or the incremented (value set to false) semantic version. Defaults to true.",
          "type": [
            "null",
            "boolean"
          ]
        }
      }
    }
  },
  "additionalProperties": false
}