{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "wait_timer": {
      "type": "integer",
      "description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)."
    },
    "prevent_self_review": {
      "type": "boolean",
      "description": "Whether or not a user who created the job is prevented from approving their own job."
    },
    "reviewers": {
      "type": [
        "array",
        "null"
      ],
      "description": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of reviewer.",
            "enum": [
              "User",
              "Team"
            ]
          },
          "id": {
            "type": "integer",
            "description": "The id of the user or team who can review the deployment"
          }
        }
      }
    },
    "deployment_branch_policy": {
      "type": [
        "object",
        "null"
      ],
      "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
      "properties": {
        "protected_branches": {
          "type": "boolean",
          "description": "Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`."
        },
        "custom_branch_policies": {
          "type": "boolean",
          "description": "Whether only branches that match the specified name patterns can deploy to this environment.  If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`."
        }
      },
      "required": [
        "protected_branches",
        "custom_branch_policies"
      ]
    }
  },
  "additionalProperties": false,
  "$schema": "https://json-schema.org/draft/2019-09/schema"
}