{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "DisabledEntity",
  "type": "object",
  "properties": {
    "at": {
      "type": "string",
      "description": "Date and time of disabling.",
      "example": "2022-04-28T14:20:04.000Z",
      "format": "date-time"
    },
    "by": {
      "$ref": "#/definitions/By"
    },
    "reason": {
      "type": "string",
      "description": "Why was the entity disabled?",
      "example": "Disabled for recurring problems."
    }
  },
  "description": "Information about the disabled entity.",
  "example": {
    "at": "2022-04-28T14:20:04.000Z",
    "by": {
      "type": "user",
      "tokenId": "896455",
      "tokenDesc": "john.green@company.com",
      "userId": "578621",
      "userName": "John Green"
    },
    "reason": "Disabled for recurring problems."
  },
  "required": [
    "at",
    "by",
    "reason"
  ]
}