{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "insights/v1/events/honeybadger-ruby/unpermitted_parameters.action_controller.json",
  "title": "ActionController: unpermitted_parameters",
  "description": "Rails strong parameters filtered out unpermitted keys.",
  "x-hb": {
    "notifiers": [
      "honeybadger-ruby"
    ],
    "category": "request",
    "component": "Action Controller"
  },
  "type": "object",
  "properties": {
    "event_type": {
      "type": "string",
      "const": "unpermitted_parameters.action_controller"
    },
    "keys": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Parameter keys that were not permitted.",
      "examples": [
        [
          "admin",
          "role"
        ]
      ]
    },
    "context": {
      "type": "object",
      "description": "Request context at the time of the violation.",
      "properties": {
        "controller": {
          "type": "string",
          "examples": [
            "UsersController"
          ]
        },
        "action": {
          "type": "string",
          "examples": [
            "update"
          ]
        },
        "request": {
          "type": "object",
          "examples": [
            {
              "method": "PATCH",
              "path": "/users/123"
            }
          ]
        }
      }
    },
    "duration": {
      "type": "number",
      "description": "Duration in milliseconds.",
      "examples": [
        0.12
      ]
    },
    "instrumenter_id": {
      "type": "string",
      "description": "Rails instrumenter UUID.",
      "examples": [
        "d6a5b3f4c2e1908a7b6c"
      ]
    },
    "request_id": {
      "type": "string",
      "description": "Rails request UUID, present on any event fired during a web request context. Merged globally by the Honeybadger agent.",
      "examples": [
        "0f5e4bb2-3c46-4b1c-91d5-2f4e8a6b9c01"
      ]
    },
    "hostname": {
      "type": "string",
      "description": "Server hostname. Attached to every event by default (events.attach_hostname).",
      "examples": [
        "web-1.example.com"
      ]
    },
    "environment": {
      "type": "string",
      "description": "Application environment, e.g. \"production\". Attached to every event by default (events.attach_environment).",
      "examples": [
        "production"
      ]
    }
  },
  "required": [
    "event_type",
    "keys"
  ]
}
