{
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "spec": {
      "properties": {
        "policies": {
          "properties": {
            "circuitBreakers": {
              "additionalProperties": {
                "properties": {
                  "interval": {
                    "type": "string"
                  },
                  "maxRequests": {
                    "type": "integer"
                  },
                  "timeout": {
                    "type": "string"
                  },
                  "trip": {
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "object"
            },
            "retries": {
              "additionalProperties": {
                "properties": {
                  "duration": {
                    "type": "string"
                  },
                  "matching": {
                    "description": "RetryMatching represents the rules to trigger retry in specific scenarios.",
                    "properties": {
                      "gRPCStatusCodes": {
                        "description": "GRPCStatusCodes represents gRPC status codes to be retried.",
                        "type": "string"
                      },
                      "httpStatusCodes": {
                        "description": "HTTPStatusCodes represents HTTP status codes to be retried.",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "maxInterval": {
                    "type": "string"
                  },
                  "maxRetries": {
                    "type": "integer"
                  },
                  "policy": {
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "object"
            },
            "timeouts": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "targets": {
          "properties": {
            "actors": {
              "additionalProperties": {
                "properties": {
                  "circuitBreaker": {
                    "type": "string"
                  },
                  "circuitBreakerCacheSize": {
                    "type": "integer"
                  },
                  "circuitBreakerScope": {
                    "type": "string"
                  },
                  "retry": {
                    "type": "string"
                  },
                  "timeout": {
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "object"
            },
            "apps": {
              "additionalProperties": {
                "properties": {
                  "circuitBreaker": {
                    "type": "string"
                  },
                  "circuitBreakerCacheSize": {
                    "type": "integer"
                  },
                  "retry": {
                    "type": "string"
                  },
                  "timeout": {
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "object"
            },
            "components": {
              "additionalProperties": {
                "properties": {
                  "inbound": {
                    "properties": {
                      "circuitBreaker": {
                        "type": "string"
                      },
                      "retry": {
                        "type": "string"
                      },
                      "timeout": {
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "outbound": {
                    "properties": {
                      "circuitBreaker": {
                        "type": "string"
                      },
                      "retry": {
                        "type": "string"
                      },
                      "timeout": {
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "object"
            }
          },
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "policies",
        "targets"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
