{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/RateLimitingConfig",
  "title": "Rate Limiting configuration",
  "description": "Rate limit configuration that can be applied to an API Package or an API Package Operation.",
  "type": "object",
  "properties": {
    "limit": {
      "description": "The amount of requests allowed for each operation within the specified duration.",
      "type": "integer",
      "minimum": 0
    },
    "duration": {
      "description": "The timeframe to ensure that an application does not exceed the request limit.",
      "type": "string",
      "enum": [
        "seconds",
        "minutes",
        "hours"
      ],
      "x-speakeasy-unknown-values": "allow"
    }
  },
  "additionalProperties": false,
  "nullable": true,
  "required": [
    "limit",
    "duration"
  ]
}