{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Http Event Request",
  "description": "TruU event request http specific structure",
  "type": "object",
  "extends": {
    "$comment": "Extends common event request structure",
    "$ref": "event.json#/$defs/event-request"
  },
  "properties": {
    "userAgent": {
      "title": "User Agent",
      "description": "User agent related to request performed by action initiated this event",
      "$ref": "event.json#/$defs/user-agent"
    },
    "method": {
      "title": "Method",
      "description": "Http Method",
      "type": "string",
      "enum": ["GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]
    },
    "host": {
      "title": "Host",
      "description": "Host",
      "type": "string"
    },
    "path": {
      "title": "Path",
      "description": "Request path",
      "type": "string"
    },
    "scheme": {
      "title": "Schema",
      "description": "Schema",
      "type": "string"
    },
    "queryParams": {
      "title": "Query Parameters",
      "description": "Query parameters as list of key value pairs",
      "$comment": "Object without properties, wanted to use here only its additionalJsonFields",
      "type": "object"
    }
  }
}
