{
  "type": "object",
  "properties": {
    "budget_amount": {
      "type": "integer",
      "description": "The budget amount in whole dollars. For license-based products, this represents the number of licenses."
    },
    "prevent_further_usage": {
      "type": "boolean",
      "description": "Whether to prevent additional spending once the budget is exceeded"
    },
    "budget_alerting": {
      "type": "object",
      "properties": {
        "will_alert": {
          "type": "boolean",
          "description": "Whether alerts are enabled for this budget"
        },
        "alert_recipients": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of user login names who will receive alerts"
        }
      }
    },
    "budget_scope": {
      "type": "string",
      "description": "The scope of the budget",
      "enum": [
        "enterprise",
        "organization",
        "repository",
        "cost_center"
      ]
    },
    "budget_entity_name": {
      "type": "string",
      "description": "The name of the entity to apply the budget to"
    },
    "budget_type": {
      "description": "The type of pricing for the budget",
      "oneOf": [
        {
          "type": "string",
          "const": "ProductPricing"
        },
        {
          "type": "string",
          "const": "SkuPricing"
        }
      ]
    },
    "budget_product_sku": {
      "type": "string",
      "description": "A single product or SKU that will be covered in the budget"
    }
  },
  "$schema": "https://json-schema.org/draft/2019-09/schema"
}