{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "ConnectPoolSchema",
  "type": "object",
  "properties": {
    "id": { "type": "string", "const": "connect" },
    "allowedVerbs": {
      "type": "array",
      "items": { "type": "string", "enum": ["connect"] }
    },
    "algo": { "type": "string", "enum": ["SHA-256", "SHA-512"] },
    "rounds": { "type": "integer", "minimum": 1, "maximum": 100 },
    "behavior": {
      "type": "object",
      "properties": {
        "size": { "type": "integer", "minimum": 1, "maximum": 10000 },
        "replenish": { "type": "string", "enum": ["top-up", "replace-all"] },
        "selectSequentially": { "type": "integer", "minimum": 1 },
        "selectRandomly": { "type": "integer", "minimum": 1 },
        "targetBindingCount": { "type": "integer", "minimum": 1 }
      },
      "required": ["size", "replenish", "selectSequentially", "selectRandomly", "targetBindingCount"]
    }
  },
  "required": ["id", "allowedVerbs", "algo", "rounds", "behavior"]
}
