{
  "type": "object",
  "properties": {
    "state": {
      "description": "Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`.",
      "type": "string",
      "enum": [
        "open",
        "dismissed"
      ]
    },
    "dismissed_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "**Required when the state is dismissed.** The reason for dismissing or closing the alert.",
      "enum": [
        "false positive",
        "won't fix",
        "used in tests",
        null
      ]
    },
    "dismissed_comment": {
      "type": [
        "string",
        "null"
      ],
      "description": "The dismissal comment associated with the dismissal of the alert.",
      "maxLength": 280
    },
    "create_request": {
      "type": "boolean",
      "description": "If `true`, attempt to create an alert dismissal request."
    },
    "assignees": {
      "description": "The list of users to assign to the code scanning alert. An empty array unassigns all previous assignees from the alert.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "anyOf": [
    {
      "required": [
        "state"
      ]
    },
    {
      "required": [
        "assignees"
      ]
    }
  ],
  "$schema": "https://json-schema.org/draft/2019-09/schema"
}