{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/glitchtip/main/json-schema/glitchtip-organizationschema.json",
  "title": "OrganizationSchema",
  "description": "GlitchTip OrganizationSchema",
  "properties": {
    "name": {
      "description": "The name of the organization",
      "maxLength": 200,
      "title": "Name",
      "type": "string"
    },
    "id": {
      "title": "Id",
      "type": "string"
    },
    "dateCreated": {
      "format": "date-time",
      "title": "Datecreated",
      "type": "string"
    },
    "status": {
      "additionalProperties": {
        "type": "string"
      },
      "default": {
        "id": "active",
        "name": "active"
      },
      "title": "Status",
      "type": "object"
    },
    "avatar": {
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "default": {
        "avatarType": "",
        "avatarUuid": null
      },
      "title": "Avatar",
      "type": "object"
    },
    "isEarlyAdopter": {
      "default": false,
      "title": "Isearlyadopter",
      "type": "boolean"
    },
    "require2fa": {
      "default": false,
      "title": "Require2Fa",
      "type": "boolean"
    },
    "slug": {
      "description": "The name in all lowercase, suitable for URL identification",
      "maxLength": 200,
      "title": "Slug",
      "type": "string"
    },
    "isAcceptingEvents": {
      "default": true,
      "description": "Used for throttling at org level",
      "title": "Is Accepting Events",
      "type": "boolean"
    },
    "eventThrottleRate": {
      "default": 0,
      "description": "Probability (in percent) on how many events are throttled. Used for throttling at project level",
      "title": "Event Throttle Rate",
      "type": "integer"
    }
  },
  "required": [
    "name",
    "id",
    "dateCreated",
    "slug"
  ],
  "type": "object"
}