{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-carole-schema.json",
  "title": "CARole",
  "description": "An issuing role — a named policy constraining what certificates can be issued under a root.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knoxcall-pki-api-openapi.yml#/components/schemas/CARole",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "ca_root_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "allowed_domains": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allow_subdomains": {
      "type": "boolean"
    },
    "allow_wildcards": {
      "type": "boolean"
    },
    "max_ttl_seconds": {
      "type": "integer"
    },
    "default_ttl_seconds": {
      "type": "integer"
    },
    "key_algorithm": {
      "type": "string",
      "enum": [
        "ecdsa-p256"
      ],
      "description": "Leaf key algorithm. Currently always `ecdsa-p256`."
    }
  }
}