{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Organization Policies",
  "type": "object",
  "additionalProperties": false,
  "patternProperties": {
    "^[a-zA-Z0-9_-]+$": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "service",
        "quota_id",
        "preferred_value"
      ],
      "properties": {
        "service": {
          "type": "string"
        },
        "quota_id": {
          "type": "string"
        },
        "preferred_value": {
          "type": "number"
        },
        "dimensions": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "justification": {
          "type": "string"
        },
        "contact_email": {
          "type": "string"
        },
        "annotations": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "ignore_safety_checks": {
          "type": "string",
          "enum": [
            "QUOTA_DECREASE_BELOW_USAGE",
            "QUOTA_DECREASE_PERCENTAGE_TOO_HIGH",
            "QUOTA_SAFETY_CHECK_UNSPECIFIED"
          ]
        }
      }
    }
  }
}
