{
  "type": "object",
  "properties": {
    "state": {
      "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
      "type": "string",
      "enum": [
        "open",
        "resolved"
      ]
    },
    "resolution": {
      "type": [
        "string",
        "null"
      ],
      "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
      "enum": [
        "false_positive",
        "wont_fix",
        "revoked",
        "used_in_tests",
        null
      ]
    },
    "resolution_comment": {
      "description": "An optional comment when closing or reopening an alert. Cannot be updated or deleted.",
      "type": [
        "string",
        "null"
      ]
    },
    "assignee": {
      "description": "The username of the user to assign to the alert. Set to `null` to unassign the alert.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "anyOf": [
    {
      "required": [
        "state"
      ]
    },
    {
      "required": [
        "assignee"
      ]
    },
    {
      "required": [
        "validity"
      ]
    }
  ],
  "$schema": "https://json-schema.org/draft/2019-09/schema"
}