{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/peertube/main/json-schema/SendClientLog.json",
  "title": "SendClientLog",
  "properties": {
    "message": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "description": "URL of the current user page"
    },
    "level": {
      "enum": [
        "error",
        "warn"
      ]
    },
    "stackTrace": {
      "type": "string",
      "description": "Stack trace of the error if there is one"
    },
    "userAgent": {
      "type": "string",
      "description": "User agent of the web browser that sends the message"
    },
    "meta": {
      "type": "string",
      "description": "Additional information regarding this log"
    }
  },
  "required": [
    "message",
    "url",
    "level"
  ]
}